summaryrefslogtreecommitdiff
path: root/src/devpoll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devpoll.cpp')
-rw-r--r--src/devpoll.cpp3
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);
}