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:
parent
b0ee6b0c8a
commit
427bc3276a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user