diff options
Diffstat (limited to 'src/poll.cpp')
-rw-r--r-- | src/poll.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poll.cpp b/src/poll.cpp index 94e4fd4..dd3de43 100644 --- a/src/poll.cpp +++ b/src/poll.cpp @@ -52,10 +52,10 @@ zmq::poll_t::poll_t () : zmq::poll_t::~poll_t () { + worker.stop (); + // Make sure there are no fds registered on shutdown. zmq_assert (load.get () == 0); - - worker.stop (); } zmq::handle_t zmq::poll_t::add_fd (fd_t fd_, i_poll_events *events_) |