From 9d96e0037a9d027fd286f771fa2a8db5def485c8 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 13 Oct 2010 10:09:46 +0200 Subject: Clean-up of the code related to attaching/detaching engines to sessions. Session base class now handles the engine events exclusively. It notifies derived session types using dedicated "attached" and "detached" events. Couple of bugs was fixed along the way. Signed-off-by: Martin Sustrik --- src/connect_session.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/connect_session.cpp') diff --git a/src/connect_session.cpp b/src/connect_session.cpp index 833b551..4d8e322 100644 --- a/src/connect_session.cpp +++ b/src/connect_session.cpp @@ -105,14 +105,13 @@ void zmq::connect_session_t::start_connecting () zmq_assert (false); } -void zmq::connect_session_t::detached () +void zmq::connect_session_t::attached (const blob_t &peer_identity_) { - // Clean up the mess left over by the failed connection. - clean_pipes (); +} +void zmq::connect_session_t::detached () +{ // Reconnect. start_connecting (); - - session_t::detached (); } -- cgit v1.2.3