0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

fix case when zmq_poller access a dead socket

This commit is contained in:
somdoron 2016-01-13 15:12:47 +02:00
parent 714988e6c5
commit 6bbca7cf4a

View File

@ -47,7 +47,7 @@ zmq::socket_poller_t::~socket_poller_t ()
tag = 0xdeadbeef;
for (items_t::iterator it = items.begin(); it != items.end(); ++it) {
if (it->socket) {
if (it->socket && it->socket->check_tag()) {
int thread_safe;
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
return -1;
#endif
}