summaryrefslogtreecommitdiff
path: root/python/qpid/peer.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/peer.py')
-rw-r--r--python/qpid/peer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/peer.py b/python/qpid/peer.py
index 3c60d99f9a..9f9644f17d 100644
--- a/python/qpid/peer.py
+++ b/python/qpid/peer.py
@@ -89,7 +89,7 @@ class Peer:
try:
frame = self.conn.read()
except EOF, e:
- self.close(e)
+ self.work.close()
break
ch = self.channel(frame.channel)
ch.receive(frame, self.work)
@@ -126,6 +126,8 @@ class Peer:
content = None
self.delegate(channel, Message(channel, frame, content))
+ except QueueClosed, e:
+ self.close(e)
except:
self.fatal()