diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 11:50:01 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 11:50:01 +0000 |
| commit | 73202655fab7a29140cd08e784a8e8ca9fefc951 (patch) | |
| tree | d5bb8380899d26ea99a9b1e0cd2a3fad0b5505b5 /python/qpid | |
| parent | d485a23d5e73578b68bb6e57f2360e317796dafb (diff) | |
| download | qpid-python-73202655fab7a29140cd08e784a8e8ca9fefc951.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/qpid@932368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
| -rw-r--r-- | python/qpid/messaging/driver.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py index cf8498794b..5cf41eb455 100644 --- a/python/qpid/messaging/driver.py +++ b/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: |
