mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-21 23:56:56 +02:00
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:
6
zmq.hpp
6
zmq.hpp
@@ -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() {}
|
||||
|
Reference in New Issue
Block a user