From c3c98db893d6e127dc5e0037fb2c3548e8f90a5a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 12 Jun 2008 19:19:22 +0000 Subject: Propagate error messages across the Demux between network & user threads. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@667205 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/SessionImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/client/SessionImpl.cpp') 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(); } -- cgit v1.2.1