summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SessionManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/SessionManager.cpp')
-rw-r--r--cpp/src/qpid/broker/SessionManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SessionManager.cpp b/cpp/src/qpid/broker/SessionManager.cpp
index 996a02f4c6..8cc58571af 100644
--- a/cpp/src/qpid/broker/SessionManager.cpp
+++ b/cpp/src/qpid/broker/SessionManager.cpp
@@ -72,7 +72,7 @@ void SessionManager::detach(std::auto_ptr<SessionState> session) {
if (session->getTimeout() > 0) {
session->expiry = AbsTime(now(),session->getTimeout()*TIME_SEC);
if (session->mgmtObject != 0)
- session->mgmtObject->set_expireTime ((uint64_t) Duration (session->expiry));
+ session->mgmtObject->set_expireTime ((uint64_t) Duration (EPOCH, session->expiry));
detached.push_back(session.release()); // In expiry order
eraseExpired();
}