mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-01 10:50:28 +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 ();
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user