Skip to content

Commit

Permalink
fix for issue anki#215, anki#216, and anki#218
Browse files Browse the repository at this point in the history
  • Loading branch information
smhh22 committed Aug 22, 2022
1 parent dd29ede commit 06ffd60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cozmo/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ async def wait_for(self, event_or_filter, timeout=30):

self.add_event_handler(event, f)
if timeout:
return await asyncio.wait_for(f, timeout, loop=self._loop)
return await asyncio.wait_for(f, timeout)
return await f


Expand Down
2 changes: 1 addition & 1 deletion src/cozmo/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def __init__(self):

async def _do_connect(self, connector,loop, protocol_factory, conn_check):
connect = connector.connect(loop, protocol_factory, conn_check)
result = await asyncio.gather(connect, loop=loop, return_exceptions=True)
result = await asyncio.gather(connect, return_exceptions=True)
return result[0]

async def connect(self, loop, protocol_factory, conn_check):
Expand Down

0 comments on commit 06ffd60

Please sign in to comment.