Commit a4e448d5 authored by Laughing's avatar Laughing Committed by GitHub

misuse of 'close'

use 'pollset_destroy' instead of 'close' to release pollset_fd
parent 90528626
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment