From 352a0b73778589bd45d0da54dcf8df2b0dc06913 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 19 Mar 2020 00:46:23 +0200 Subject: [PATCH] Wait for an output from debug server --- platformio/commands/debug/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/commands/debug/server.py b/platformio/commands/debug/server.py index 1d2b2a11..a129a6aa 100644 --- a/platformio/commands/debug/server.py +++ b/platformio/commands/debug/server.py @@ -131,7 +131,10 @@ class DebugServer(BaseProcess): while ( not self._process_ended and elapsed < timeout - and not (self._last_activity < (time.time() - ready_delay)) + and ( + not self._last_activity + or not (self._last_activity < (time.time() - ready_delay)) + ) ): yield self.async_sleep(delay) elapsed += delay