Event.wait() is async, and must be awaited

This commit is contained in:
Ryan Flynn 2018-10-25 12:39:39 -04:00 committed by Pedro Ferreira
parent 77d1477106
commit 975467030a

View File

@ -58,7 +58,7 @@ class PSRequestHandler(object):
def __await__(self):
# wait until 'process' is called
yield from self.event.wait()
yield from self.event.wait().__await__()
return self._msg