Skip to content

Commit

Permalink
set event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed Aug 13, 2022
1 parent 6e67d24 commit a4bae7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gor/asyncio_impl.py
Expand Up @@ -57,6 +57,7 @@ def run(self):
self.io_loop = asyncio.get_running_loop()
except RuntimeError:
self.io_loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.io_loop)
self.io_loop.create_task(self._run())
try:
self.io_loop.run_forever()
Expand Down

0 comments on commit a4bae7c

Please sign in to comment.