summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-04-09 11:50:01 +0000
committerRafael H. Schloming <rhs@apache.org>2010-04-09 11:50:01 +0000
commit9164a29c78d8fa3c53ce00366b53ed08a4c99e00 (patch)
tree6b7c27f2a606d7fa6cdab0ac519bbc3a48e1f937 /qpid/python
parent6c206f8f0e142a4c112e36cf5c852a12bcf445a6 (diff)
downloadqpid-python-9164a29c78d8fa3c53ce00366b53ed08a4c99e00.tar.gz
clean up pipes from driver side in case nobody is waiting for the error
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging/driver.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py
index cf8498794b..5cf41eb455 100644
--- a/qpid/python/qpid/messaging/driver.py
+++ b/qpid/python/qpid/messaging/driver.py
@@ -380,6 +380,11 @@ class Driver:
self.update_status()
+ self._notify()
+
+ def _notify(self):
+ if self.connection.error:
+ self.connection._condition.gc()
self.connection._waiter.notifyAll()
def close_engine(self, e=None):
@@ -434,12 +439,12 @@ class Driver:
notify = True
if self.update_status() or notify:
- self.connection._waiter.notifyAll()
+ self._notify()
@synchronized
def timeout(self):
self.dispatch()
- self.connection._waiter.notifyAll()
+ self._notify()
def dispatch(self):
try: