diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-14 13:54:30 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-14 13:54:30 +0200 |
commit | 2bc9419ced21151fe90c530758dc85b7024fdb70 (patch) | |
tree | f59dac8b51af4f33f9150eb104d843337c55a700 /src/zmq_listener_init.cpp | |
parent | 37cacc5700eaaaddbe2df6e3affeca4a335b023a (diff) |
ZMQII-10: Make connections interrupted during the init phase be closed silently
Diffstat (limited to 'src/zmq_listener_init.cpp')
-rw-r--r-- | src/zmq_listener_init.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zmq_listener_init.cpp b/src/zmq_listener_init.cpp index 98a3780..756e9d8 100644 --- a/src/zmq_listener_init.cpp +++ b/src/zmq_listener_init.cpp @@ -93,8 +93,11 @@ void zmq::zmq_listener_init_t::flush () void zmq::zmq_listener_init_t::detach () { - // TODO: Engine is closing down. Init object is to be closed as well. - zmq_assert (false); + // This function is called by engine when disconnection occurs. + // The engine will destroy itself, so we just drop the pointer here and + // start termination of the init object. + engine = NULL; + term (); } void zmq::zmq_listener_init_t::process_plug () |