mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Fix montior tests to handle the monitor stopped event correctly
This commit is contained in:
parent
d4d23caf32
commit
f6e972d546
@ -58,7 +58,11 @@ static bool read_msg(void* s, zmq_event_t& event, std::string& ep)
|
|||||||
memcpy(&event.value, data+sizeof(event.event), sizeof(event.value));
|
memcpy(&event.value, data+sizeof(event.event), sizeof(event.value));
|
||||||
// copy address part
|
// copy address part
|
||||||
ep = std::string((char*)zmq_msg_data(&msg2), zmq_msg_size(&msg2));
|
ep = std::string((char*)zmq_msg_data(&msg2), zmq_msg_size(&msg2));
|
||||||
return false ;
|
|
||||||
|
if (event.event == ZMQ_EVENT_MONITOR_STOPPED)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user