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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 07 Jan 2018 17:22:37 +0100
branch
maintenance
changeset 6061
e0ceb240afa5
parent 6057
61b1ce18b148
child 6065
fb0a1b8b0f82

Fixed an issue in the debug client base class handling socket read errors.
(grafted from 57365172e94f5b3022142c6d160a45b84c9ec3f7)

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Sat Jan 06 14:56:44 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