--- a/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Fri Mar 08 15:51:14 2024 +0100 +++ b/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Fri Mar 08 16:08:43 2024 +0100 @@ -49,7 +49,6 @@ self.__originalPathString = os.getenv("PATH") - def initServerSocket(self): """ Public method to initialize the server socket listening for debug client @@ -178,10 +177,10 @@ self.__server.getSelector().unregister(sock) address = sock.getpeername() - print( + print( # noqa: M801 f"'Debug Client' connection from {address[0]}, port {address[1]} closed." ) - # noqa: M801 + for debuggerId in list(self.__connections): if self.__connections[debuggerId] is sock: del self.__connections[debuggerId]