summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/delegates.py5
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