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)