summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SessionState.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-21 20:34:49 +0000
committerGordon Sim <gsim@apache.org>2008-04-21 20:34:49 +0000
commit541133bd1888fd527abb8780b2216f919244c797 (patch)
tree2e07858a25ca4f72bb6f5e1a26666ba27207a8d9 /cpp/src/qpid/broker/SessionState.cpp
parentc17b3eb2db91a36307905c287ebab6118177caa9 (diff)
downloadqpid-python-541133bd1888fd527abb8780b2216f919244c797.tar.gz
* raise error when controls other than attached are received on unattached channel
* corrected exception handling in client and on broker (broker to issue detach) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650250 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionState.cpp')
-rw-r--r--cpp/src/qpid/broker/SessionState.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp
index 3c6bed4344..b96d7b5e3f 100644
--- a/cpp/src/qpid/broker/SessionState.cpp
+++ b/cpp/src/qpid/broker/SessionState.cpp
@@ -275,11 +275,7 @@ void SessionState::handle(AMQFrame& frame)
} else {
getProxy().getExecution010().exception(e.code, commandId, 0, 0, 0, e.what(), FieldTable());
}
- timeout = 0;
- //The python client doesn't currently detach on receiving an exception
- //so the session state isn't destroyed. This is a temporary workaround
- //until that is addressed
- adapter.destroyExclusiveQueues();
+ throw e;
}
}