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