misuse of 'close'

use 'pollset_destroy' instead of 'close' to release pollset_fd
This commit is contained in:
Laughing 2016-12-13 11:09:01 +08:00 committed by GitHub
parent 9052862619
commit a4e448d586

View File

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