Eliminate unneccessary patching in GreenFuture
Due to eventlet's bug eventlet.patcher.is_monkey_patched('threading') always returns False, so it is better to replace 'threading' with 'thread', which seems to work properly. Change-Id: I849e427c312e41b2d518a088e3f91c92d7574bd7
This commit is contained in:
parent
72b06b5afd
commit
4650a2bf3b
|
@ -314,7 +314,7 @@ class GreenFuture(Future):
|
|||
# functions will correctly yield to eventlet. If this is not done then
|
||||
# waiting on the future never actually causes the greenthreads to run
|
||||
# and thus you wait for infinity.
|
||||
if not _green.is_monkey_patched('threading'):
|
||||
if not _green.is_monkey_patched('thread'):
|
||||
self._condition = _green.threading.condition_object()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue