DebugClients/Python/DebugClientBase.py

changeset 6060
57365172e94f
parent 6048
82ad8ec9548c
child 6588
a77723d4060f
equal deleted inserted replaced
6059:8f7c66c53c27 6060:57365172e94f
1022 self.lockClient() 1022 self.lockClient()
1023 try: 1023 try:
1024 command = stream.readCommand() 1024 command = stream.readCommand()
1025 except Exception: 1025 except Exception:
1026 error = True 1026 error = True
1027 command = ""
1027 self.unlockClient() 1028 self.unlockClient()
1028 1029
1029 if len(command) == 0 or error: 1030 if error or len(command) == 0:
1030 self.sessionClose() 1031 self.sessionClose()
1031 else: 1032 else:
1032 self.handleJsonCommand(command) 1033 self.handleJsonCommand(command)
1033 1034
1034 return error 1035 return error

eric ide

mercurial