Debugger/DebuggerInterfacePython3.py

changeset 3345
071afe8be2a1
parent 3190
a9a94491c4fd
child 3357
2390df6f42ba
equal deleted inserted replaced
3343:f7a6d271bb40 3345:071afe8be2a1
377 # If we already have a connection, refuse this one. It will be closed 377 # If we already have a connection, refuse this one. It will be closed
378 # automatically. 378 # automatically.
379 if self.qsock is not None: 379 if self.qsock is not None:
380 return False 380 return False
381 381
382 sock.disconnected[()].connect(self.debugServer.startClient) 382 sock.disconnected.connect(self.debugServer.startClient)
383 sock.readyRead[()].connect(self.__parseClientLine) 383 sock.readyRead.connect(self.__parseClientLine)
384 384
385 self.qsock = sock 385 self.qsock = sock
386 386
387 # Get the remote clients capabilities 387 # Get the remote clients capabilities
388 self.remoteCapabilities() 388 self.remoteCapabilities()
408 if self.qsock is None: 408 if self.qsock is None:
409 return 409 return
410 410
411 # do not want any slots called during shutdown 411 # do not want any slots called during shutdown
412 self.qsock.disconnected.disconnect(self.debugServer.startClient) 412 self.qsock.disconnected.disconnect(self.debugServer.startClient)
413 self.qsock.readyRead[()].disconnect(self.__parseClientLine) 413 self.qsock.readyRead.disconnect(self.__parseClientLine)
414 414
415 # close down socket, and shut down client as well. 415 # close down socket, and shut down client as well.
416 self.__sendCommand('{0}\n'.format(DebugProtocol.RequestShutdown)) 416 self.__sendCommand('{0}\n'.format(DebugProtocol.RequestShutdown))
417 self.qsock.flush() 417 self.qsock.flush()
418 418

eric ide

mercurial