Commit 46d70555 authored by Martin Sustrik's avatar Martin Sustrik

connecter object unregisters its fd correctly

parent 87655b0b
......@@ -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 ();
......
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