Fixed an issue in the debug client base class handling socket read errors.

Sun, 07 Jan 2018 17:22:37 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 07 Jan 2018 17:22:37 +0100
changeset 6060
57365172e94f
parent 6059
8f7c66c53c27
child 6062
926d2ad79e6d

Fixed an issue in the debug client base class handling socket read errors.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
diff -r 8f7c66c53c27 -r 57365172e94f DebugClients/Python/DebugClientBase.py
--- 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