mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Revert "problem:Socket try to access closed mutex"
This commit is contained in:
parent
f6ce1d764c
commit
c41d514b8b
@ -1514,12 +1514,14 @@ void zmq::socket_base_t::in_event ()
|
||||
// of the reaper thread. Process any commands from other threads/sockets
|
||||
// that may be available at the moment. Ultimately, the socket will
|
||||
// be destroyed.
|
||||
ENTER_MUTEX ();
|
||||
|
||||
// If the socket is thread safe we need to unsignal the reaper signaler
|
||||
if (thread_safe)
|
||||
reaper_signaler->recv();
|
||||
|
||||
process_commands (0, false);
|
||||
EXIT_MUTEX();
|
||||
check_destroy();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user