connecter object unregisters its fd correctly

This commit is contained in:
Martin Sustrik 2010-08-24 10:20:55 +02:00
parent 87655b0b9d
commit 46d7055565
2 changed files with 4 additions and 9 deletions

View File

@ -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

View File

@ -44,7 +44,6 @@ namespace zmq
// Handlers for incoming commands.
void process_plug ();
void process_unplug ();
// Handlers for I/O events.
void in_event ();