DebugClients/Python/DebugClientBase.py

changeset 6060
57365172e94f
parent 6048
82ad8ec9548c
child 6588
a77723d4060f
--- a/DebugClients/Python/DebugClientBase.py	Sun Jan 07 17:18:07 2018 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Sun Jan 07 17:22:37 2018 +0100
@@ -1024,9 +1024,10 @@
             command = stream.readCommand()
         except Exception:
             error = True
+            command = ""
         self.unlockClient()
 
-        if len(command) == 0 or error:
+        if error or len(command) == 0:
             self.sessionClose()
         else:
             self.handleJsonCommand(command)

eric ide

mercurial