diff options
| author | Gordon Sim <gsim@apache.org> | 2010-04-28 08:30:57 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-04-28 08:30:57 +0000 |
| commit | 4b490c2a2234be53f985b16448dbccb91285b367 (patch) | |
| tree | 8654906f98636839e17a6db5ba593c6ab4918c97 /qpid/python | |
| parent | 2b5127e91200169df0d6b62a54a84e3e494fe527 (diff) | |
| download | qpid-python-4b490c2a2234be53f985b16448dbccb91285b367.tar.gz | |
Ensure proper error message is reported when connection is closed by broker
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@938815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/delegates.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qpid/python/qpid/delegates.py b/qpid/python/qpid/delegates.py index 4c41a6241f..5c1c8addd1 100644 --- a/qpid/python/qpid/delegates.py +++ b/qpid/python/qpid/delegates.py @@ -58,10 +58,7 @@ class Delegate: def connection_close(self, ch, close): self.connection.close_code = (close.reply_code, close.reply_text) ch.connection_close_ok() - self.connection.sock.close() - if not self.connection.opened: - self.connection.failed = True - notify(self.connection.condition) + raise Closed(close.reply_text) def connection_close_ok(self, ch, close_ok): self.connection.opened = False |
