Problem: no tests for monitor_t::abort

Solution: add a test and fix implementation of monitor_t::abort to make it usable
This commit is contained in:
Simon Giesecke
2018-06-05 10:18:05 +02:00
parent ec63fb3485
commit 58ffef7190
2 changed files with 41 additions and 5 deletions

View File

@@ -849,7 +849,7 @@ class monitor_t
#ifdef ZMQ_EVENT_MONITOR_STOPPED
if (event->event == ZMQ_EVENT_MONITOR_STOPPED) {
zmq_msg_close(&eventMsg);
return true;
return false;
}
#endif
@@ -923,11 +923,7 @@ class monitor_t
if (socketPtr)
zmq_socket_monitor(socketPtr, NULL, 0);
if (monitor_socket)
zmq_close(monitor_socket);
socketPtr = NULL;
monitor_socket = NULL;
}
#endif
virtual void on_monitor_started() {}