mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-24 07:21:32 +01:00
misuse of 'close'
use 'pollset_destroy' instead of 'close' to release pollset_fd
This commit is contained in:
parent
9052862619
commit
a4e448d586
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user