diff options
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/client/SessionImpl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp index 05d90b4314..b7ff4307b6 100644 --- a/cpp/src/qpid/client/SessionImpl.cpp +++ b/cpp/src/qpid/client/SessionImpl.cpp @@ -789,6 +789,12 @@ void SessionImpl::assertOpen() const checkOpen(); } +bool SessionImpl::hasError() const +{ + Lock l(state); + return !exceptionHolder.empty(); +} + void SessionImpl::handleClosed() { demux.close(exceptionHolder.empty() ? |
