mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-24 15:26:55 +01:00
connecter object unregisters its fd correctly
This commit is contained in:
parent
87655b0b9d
commit
46d7055565
@ -41,6 +41,10 @@ zmq::zmq_connecter_t::zmq_connecter_t (class io_thread_t *io_thread_,
|
||||
|
||||
zmq::zmq_connecter_t::~zmq_connecter_t ()
|
||||
{
|
||||
if (wait)
|
||||
cancel_timer ();
|
||||
if (handle_valid)
|
||||
rm_fd (handle);
|
||||
}
|
||||
|
||||
void zmq::zmq_connecter_t::process_plug ()
|
||||
@ -51,14 +55,6 @@ void zmq::zmq_connecter_t::process_plug ()
|
||||
start_connecting ();
|
||||
}
|
||||
|
||||
void zmq::zmq_connecter_t::process_unplug ()
|
||||
{
|
||||
if (wait)
|
||||
cancel_timer ();
|
||||
if (handle_valid)
|
||||
rm_fd (handle);
|
||||
}
|
||||
|
||||
void zmq::zmq_connecter_t::in_event ()
|
||||
{
|
||||
// We are not polling for incomming data, so we are actually called
|
||||
|
@ -44,7 +44,6 @@ namespace zmq
|
||||
|
||||
// Handlers for incoming commands.
|
||||
void process_plug ();
|
||||
void process_unplug ();
|
||||
|
||||
// Handlers for I/O events.
|
||||
void in_event ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user