src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7
changeset 10517
aecd5a8c958c
parent 10464
30de2b1bee37
child 10534
783d835d7fe4
child 10551
d80184d38152
diff -r 72baef0baa76 -r aecd5a8c958c src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Jan 21 12:53:23 2024 +0100
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Sun Jan 21 13:00:42 2024 +0100
@@ -664,7 +664,7 @@
         @param sock reference to the disconnected socket
         @type QTcpSocket
         """
-        for debuggerId in self.__connections:
+        for debuggerId in list(self.__connections):
             if self.__connections[debuggerId] is sock:
                 del self.__connections[debuggerId]
                 if debuggerId == self.__mainDebugger:

eric ide

mercurial