Commit 427bc327 authored by Martin Sustrik's avatar Martin Sustrik

minor code cleanup

parent b0ee6b0c
...@@ -494,7 +494,7 @@ uint64_t zmq::socket_base_t::register_session (session_t *session_) ...@@ -494,7 +494,7 @@ uint64_t zmq::socket_base_t::register_session (session_t *session_)
sessions_sync.lock (); sessions_sync.lock ();
uint64_t ordinal = next_ordinal; uint64_t ordinal = next_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 (); sessions_sync.unlock ();
return ordinal; return ordinal;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment