parent
220099a3ed
commit
831c59996f
1 changed files with 4 additions and 1 deletions
|
|
@ -227,7 +227,10 @@ def __init__(
|
|||
self.asyncio_loop: asyncio.AbstractEventLoop = asyncio.SelectorEventLoop(selectors.SelectSelector())
|
||||
asyncio.set_event_loop(self.asyncio_loop)
|
||||
else:
|
||||
try:
|
||||
self.asyncio_loop = asyncio.get_event_loop()
|
||||
except RuntimeError:
|
||||
self.asyncio_loop = asyncio.new_event_loop()
|
||||
self.return_code = 0
|
||||
self.overlay_ready_reported = False
|
||||
self.optional_actions = optional_actions
|
||||
|
|
|
|||
Loading…
Reference in a new issue