Fix montior tests to handle the monitor stopped event correctly

This commit is contained in:
Richard Newton 2013-07-01 10:31:57 +00:00
parent d4d23caf32
commit f6e972d546

View File

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