Commit 6bbca7cf authored by somdoron's avatar somdoron

fix case when zmq_poller access a dead socket

parent 714988e6
...@@ -47,7 +47,7 @@ zmq::socket_poller_t::~socket_poller_t () ...@@ -47,7 +47,7 @@ zmq::socket_poller_t::~socket_poller_t ()
tag = 0xdeadbeef; tag = 0xdeadbeef;
for (items_t::iterator it = items.begin(); it != items.end(); ++it) { for (items_t::iterator it = items.begin(); it != items.end(); ++it) {
if (it->socket) { if (it->socket && it->socket->check_tag()) {
int thread_safe; int thread_safe;
size_t thread_safe_size = sizeof(int); size_t thread_safe_size = sizeof(int);
...@@ -648,5 +648,3 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *event_, long time ...@@ -648,5 +648,3 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *event_, long time
return -1; return -1;
#endif #endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment