Skip to content

Commit 8f3acaf

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 075fcba commit 8f3acaf

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
@@ -775,6 +775,7 @@ async def send_block(self, data):
775775
async def run(self, py_path, wait=True, print_output=True):
776776

777777
# Reset output buffer
778+
self.log_file = None
778779
self.output = []
779780
self.print_output = print_output
780781

0 commit comments

Comments
 (0)