summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SessionImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index 7b8cae943f..574c71ecd7 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -616,7 +616,9 @@ void SessionImpl::assertOpen() const
void SessionImpl::handleClosed()
{
- demux.close();
+ // FIXME aconway 2008-06-12: needs to be set to the correct exception type.
+ //
+ demux.close(sys::ExceptionHolder(text.empty() ? new ClosedException() : new Exception(text)));
results.close();
}