diff options
-rw-r--r-- | src/session.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp index aae7e3c..f853d5a 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -224,6 +224,8 @@ void zmq::session_t::process_attach (i_engine *engine_, } // If we are already terminating, we destroy the engine straight away. + // Note that we don't have to unplug it before deleting as it's not + // yet plugged to the session. if (state == terminating) { delete engine; return; |