diff options
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r-- | src/devpoll.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp index ac5c72f..2386034 100644 --- a/src/devpoll.cpp +++ b/src/devpoll.cpp @@ -54,10 +54,11 @@ zmq::devpoll_t::devpoll_t () zmq::devpoll_t::~devpoll_t () { + worker.stop (); + // Make sure there are no fds registered on shutdown. zmq_assert (load.get () == 0); - worker.stop (); close (devpoll_fd); } |