qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1514192 - /qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp
Date Thu, 15 Aug 2013 07:57:09 GMT
Author: gsim
Date: Thu Aug 15 07:57:09 2013
New Revision: 1514192

URL: http://svn.apache.org/r1514192
Log:
QPID-5072: ensure session manager is informed when sessions end due to connection exception

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp?rev=1514192&r1=1514191&r2=1514192&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp Thu Aug 15 07:57:09 2013
@@ -39,7 +39,11 @@ SessionHandler::SessionHandler(amqp_0_10
       proxy(out)
 {}
 
-SessionHandler::~SessionHandler() {}
+SessionHandler::~SessionHandler()
+{
+    if (session.get())
+        connection.getBroker().getSessionManager().forget(session->getId());
+}
 
 void SessionHandler::connectionException(
     framing::connection::CloseCode code, const std::string& msg)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message