diff --git a/src/pollset.cpp b/src/pollset.cpp index b0c0f68b..f08b34b4 100644 --- a/src/pollset.cpp +++ b/src/pollset.cpp @@ -55,7 +55,7 @@ zmq::pollset_t::~pollset_t () // Wait till the worker thread exits. worker.stop (); - close (pollset_fd); + pollset_destroy (pollset_fd); for (retired_t::iterator it = retired.begin (); it != retired.end (); ++it) LIBZMQ_DELETE(*it); }