diff options
author | Robey Pointer <robey@dhcp-192-168-1-88.danger.com> | 2006-02-01 16:59:30 -0800 |
---|---|---|
committer | Robey Pointer <robey@dhcp-192-168-1-88.danger.com> | 2006-02-01 16:59:30 -0800 |
commit | 0627f094945d0ec3c90edea24d6ff38ffade2d21 (patch) | |
tree | bfe37e5592e01f66a42e0ea59ee399912147a3af | |
parent | 2262f7f188550249456f4b9ecb7eefd6215d4314 (diff) |
[project @ robey@dhcp-192-168-1-88.danger.com-20060202005930-3248b8be189d5d23]
reorder the event check so that a positive event is noticed before a closed channel
-rw-r--r-- | paramiko/channel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py index 0773b855..9d2f76b9 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -1006,10 +1006,10 @@ class Channel (object): def _wait_for_event(self): while True: self.event.wait(0.1) - if self.closed: - return False if self.event.isSet(): break + if self.closed: + return False return True def _set_closed(self): |