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