Skip to content

Commit 0b86d06

Browse files
committed
Add on_monitor_stopped functions
1 parent 6164cf7 commit 0b86d06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zmq.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -2384,6 +2384,8 @@ class monitor_t
23842384

23852385
_socket = socket_ref();
23862386
}
2387+
2388+
virtual void on_monitor_stopped() {}
23872389
#endif
23882390
virtual void on_monitor_started() {}
23892391
virtual void on_event_connected(const zmq_event_t &event_, const char *addr_)
@@ -2525,6 +2527,7 @@ class monitor_t
25252527

25262528
#ifdef ZMQ_EVENT_MONITOR_STOPPED
25272529
if (event->event == ZMQ_EVENT_MONITOR_STOPPED) {
2530+
on_monitor_stopped();
25282531
return false;
25292532
}
25302533

0 commit comments

Comments
 (0)