problem:Socket try to access closed mutex

This commit is contained in:
Doron Somech 2016-05-05 22:16:35 +03:00
parent a6e8d153cb
commit 77d3d7b4dc

View File

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