summaryrefslogtreecommitdiff
path: root/src/poll.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-16 15:37:20 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-16 15:37:20 +0200
commit35c58dc7331e3c5033b16829dff40437efe97a81 (patch)
tree3ce7bca72c38768204cbd4acb59bc9bc746ed785 /src/poll.cpp
parentfc7715b4636be7a0d49f27234359ddfddce23f5b (diff)
ZMQII-1: fix for devpoll, kqueue & poll
Diffstat (limited to 'src/poll.cpp')
-rw-r--r--src/poll.cpp4
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_)