555 @type QTcpSocket |
555 @type QTcpSocket |
556 """ |
556 """ |
557 for debuggerId in self.__connections: |
557 for debuggerId in self.__connections: |
558 if self.__connections[debuggerId] is sock: |
558 if self.__connections[debuggerId] is sock: |
559 del self.__connections[debuggerId] |
559 del self.__connections[debuggerId] |
|
560 if debuggerId == self.__master: |
|
561 self.__master = None |
560 break |
562 break |
561 else: |
563 else: |
562 if sock in self.__pendingConnections: |
564 if sock in self.__pendingConnections: |
563 self.__pendingConnections.remove(sock) |
565 self.__pendingConnections.remove(sock) |
564 |
566 |