summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@dhcp-192-168-1-88.danger.com>2006-02-01 16:59:30 -0800
committerRobey Pointer <robey@dhcp-192-168-1-88.danger.com>2006-02-01 16:59:30 -0800
commit0627f094945d0ec3c90edea24d6ff38ffade2d21 (patch)
treebfe37e5592e01f66a42e0ea59ee399912147a3af
parent2262f7f188550249456f4b9ecb7eefd6215d4314 (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.py4
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):