ZMQII-1: fix for devpoll, kqueue & poll

This commit is contained in:
Martin Sustrik
2009-09-16 15:37:20 +02:00
parent fc7715b463
commit 35c58dc733
3 changed files with 6 additions and 4 deletions

View File

@@ -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);
}