Skip to content

Commit 48ab0ee

Browse files
committed
connections: Wait for output.
The user program stopped signal can come in sooner than the last piece of output, so give it some extra time.
1 parent 34ac155 commit 48ab0ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pybricksdev/connections.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,3 +760,4 @@ async def run(self, py_path, wait=True, print_output=True):
760760

761761
if wait:
762762
await self.user_program_stopped.wait()
763+
await asyncio.sleep(0.3)

0 commit comments

Comments
 (0)