0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 16:45:51 +08:00

minor code cleanup

This commit is contained in:
Martin Sustrik 2010-02-07 16:24:14 +01:00
parent b0ee6b0c8a
commit 427bc3276a

View File

@ -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;
}