You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't specify a timeout, and remove the while loop.
Something like
# NB: Before Python 2.7 threading.Event.wait() always returns None. # On Python 2.7+ it returns True, unless the timeout is reached.whilenotself.wake_event.wait(0.1) andnotself.wake_event.isSet():
pass
ETA: my multithreaded fu is weak though, so holding off on a PR
The function waits until
self.wake_event.wait(0.1)
returnsTrue
, wait_event is an instance ofthreading.Event
https://github.com/dw/mitogen/blob/a8dcd53ccca0d6fffc4568bc216ddedeed610474/mitogen/fakessh.py#L162-L164However in Python 2.6 and earlier
Event.wait()
always returnsNone
The text was updated successfully, but these errors were encountered: