Skip to content

Commit 075fcba

Browse files
committed
connections: reset log file on run
This avoids problems if a large log file upload was cancelled on a previous run, leaving the file still open.
1 parent a0d41d6 commit 075fcba

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
@@ -271,6 +271,7 @@ async def run(self, py_path, wait=True, print_output=True):
271271
"""
272272

273273
# Reset output buffer
274+
self.log_file = None
274275
self.output = []
275276
self.print_output = print_output
276277

0 commit comments

Comments
 (0)