Commit f6e972d5 authored by Richard Newton's avatar Richard Newton

Fix montior tests to handle the monitor stopped event correctly

parent d4d23caf
......@@ -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));
// copy address part
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;
}
......
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