Skip to content

Commit 23cd83e

Browse files
authored
Merge pull request #631 from egecetin/master
Add on_monitor_stopped function for monitor_t
2 parents 301871a + 0b86d06 commit 23cd83e

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
@@ -2387,6 +2387,8 @@ class monitor_t
23872387

23882388
_socket = socket_ref();
23892389
}
2390+
2391+
virtual void on_monitor_stopped() {}
23902392
#endif
23912393
virtual void on_monitor_started() {}
23922394
virtual void on_event_connected(const zmq_event_t &event_, const char *addr_)
@@ -2528,6 +2530,7 @@ class monitor_t
25282530

25292531
#ifdef ZMQ_EVENT_MONITOR_STOPPED
25302532
if (event->event == ZMQ_EVENT_MONITOR_STOPPED) {
2533+
on_monitor_stopped();
25312534
return false;
25322535
}
25332536

0 commit comments

Comments
 (0)