qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1735327 - /qpid/trunk/qpid/cpp/src/qpid/broker/SessionManager.cpp
Date Wed, 16 Mar 2016 22:36:35 GMT
Author: astitcher
Date: Wed Mar 16 22:36:35 2016
New Revision: 1735327

URL: http://svn.apache.org/viewvc?rev=1735327&view=rev
Log:
QPID-7146: Fix indentation error picked up by compiler

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

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SessionManager.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SessionManager.cpp?rev=1735327&r1=1735326&r2=1735327&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/SessionManager.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/SessionManager.cpp Wed Mar 16 22:36:35 2016
@@ -69,12 +69,13 @@ void  SessionManager::detach(std::auto_p
     attached.erase(session->getId());
     session->detach();
     if (session->getTimeout() > 0) {
-    session->expiry = AbsTime(now(), session->getTimeout()*TIME_SEC);
-    if (session->mgmtObject != 0)
-        session->mgmtObject->set_expireTime (Duration::FromEpoch()+session->getTimeout()*TIME_SEC);
+        session->expiry = AbsTime(now(), session->getTimeout()*TIME_SEC);
+        if (session->mgmtObject != 0) {
+            session->mgmtObject->set_expireTime (Duration::FromEpoch()+session->getTimeout()*TIME_SEC);
+        }
         detached.push_back(session.release()); // In expiry order
-    eraseExpired();
-}
+        eraseExpired();
+    }
 }
 
 void SessionManager::forget(const SessionId& id) {



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


Mime
View raw message