662 Private slot handling a socket disconnecting. |
662 Private slot handling a socket disconnecting. |
663 |
663 |
664 @param sock reference to the disconnected socket |
664 @param sock reference to the disconnected socket |
665 @type QTcpSocket |
665 @type QTcpSocket |
666 """ |
666 """ |
667 for debuggerId in self.__connections: |
667 for debuggerId in list(self.__connections): |
668 if self.__connections[debuggerId] is sock: |
668 if self.__connections[debuggerId] is sock: |
669 del self.__connections[debuggerId] |
669 del self.__connections[debuggerId] |
670 if debuggerId == self.__mainDebugger: |
670 if debuggerId == self.__mainDebugger: |
671 self.__mainDebugger = None |
671 self.__mainDebugger = None |
672 if debuggerId in self.__autoContinued: |
672 if debuggerId in self.__autoContinued: |