From 0627f094945d0ec3c90edea24d6ff38ffade2d21 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 1 Feb 2006 16:59:30 -0800 Subject: [PATCH] [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 --- paramiko/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paramiko/channel.py b/paramiko/channel.py index 0773b85..9d2f76b 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):