diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-06 22:08:14 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-06 22:08:14 +0000 |
commit | 2de0473cf8c64e06396c5f5e6a0cf8b5e982514e (patch) | |
tree | e16cb5c31d3c6399e5e3eeb0f50b793d55b1ad13 /cpp/src/qpid/client/ConnectionImpl.cpp | |
parent | e1132d45340a4d1c91648cac856803428d2a60f4 (diff) | |
download | qpid-python-2de0473cf8c64e06396c5f5e6a0cf8b5e982514e.tar.gz |
Restrict connection close codes to the set defined in the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ConnectionImpl.cpp')
-rw-r--r-- | cpp/src/qpid/client/ConnectionImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index ed296cbd4d..b284fb6312 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/ConnectionImpl.cpp @@ -150,7 +150,7 @@ template <class F> void ConnectionImpl::closeInternal(const F& f) { void ConnectionImpl::closed(uint16_t code, const std::string& text) { Mutex::ScopedLock l(lock); - setException(new ConnectionException(code, text)); + setException(new ConnectionException(ConnectionHandler::convert(code), text)); closeInternal(boost::bind(&SessionImpl::connectionClosed, _1, code, text)); } |