Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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