Skip to content

Commit

Permalink
Merge pull request #114 from romkazor/master
Browse files Browse the repository at this point in the history
Fix RuntimeError
  • Loading branch information
gawel authored Mar 21, 2023
2 parents 7c35a7e + e3e4b8f commit 87df4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panoramisk/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def connect(self, run_forever=False, on_startup=None, on_shutdown=None):
"""connect to the server"""
if self.loop is None: # pragma: no cover
self.loop = asyncio.get_event_loop()
t = asyncio.create_task(
t = asyncio.ensure_future(
self.loop.create_connection(
self.config['protocol_factory'],
self.config['host'], self.config['port'],
Expand Down

0 comments on commit 87df4d6

Please sign in to comment.