summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/socket_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index d35c8c0..2eac84b 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -494,7 +494,7 @@ uint64_t zmq::socket_base_t::register_session (session_t *session_)
sessions_sync.lock ();
uint64_t ordinal = next_ordinal;
next_ordinal++;
- unnamed_sessions.insert (std::make_pair (ordinal, session_)).second;
+ unnamed_sessions.insert (std::make_pair (ordinal, session_));
sessions_sync.unlock ();
return ordinal;
}