Skip to content

Commit

Permalink
connections: Wait for output.
Browse files Browse the repository at this point in the history
The user program stopped signal can come in sooner than the last piece of output, so give it some extra time.
  • Loading branch information
laurensvalk committed Apr 10, 2021
1 parent 34ac155 commit 48ab0ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pybricksdev/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,3 +760,4 @@ async def run(self, py_path, wait=True, print_output=True):

if wait:
await self.user_program_stopped.wait()
await asyncio.sleep(0.3)

0 comments on commit 48ab0ee

Please sign in to comment.