diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-10-13 10:09:46 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-10-13 10:09:46 +0200 |
commit | 9d96e0037a9d027fd286f771fa2a8db5def485c8 (patch) | |
tree | 8fe87b67d46182651a2fb54675ea102e220974f5 /src/connect_session.cpp | |
parent | 5ae878b891fa5189f5202f1577d22bdb9ba51f77 (diff) |
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/connect_session.cpp')
-rw-r--r-- | src/connect_session.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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 (); } |