Modified the Python debugger interface to better cope with situations during shutdown. eric7

Fri, 21 Oct 2022 09:28:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 21 Oct 2022 09:28:18 +0200
branch
eric7
changeset 9428
615d367f0140
parent 9427
905e7af29101
child 9429
b2db3a67525c

Modified the Python debugger interface to better cope with situations during shutdown.

src/eric7/Debugger/DebuggerInterfacePython.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Thu Oct 20 19:19:00 2022 +0200
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Fri Oct 21 09:28:18 2022 +0200
@@ -639,11 +639,12 @@
         if not self.__connections:
             # no active connections anymore
             with contextlib.suppress(RuntimeError):
-                self.debugServer.signalLastClientExited()
                 # debug server object might have been deleted already
                 # ignore this
-            self.__autoContinued.clear()
-            self.debugServer.startClient()
+                self.debugServer.signalLastClientExited()
+                self.__autoContinued.clear()
+                if not self.__inShutdown:
+                    self.debugServer.startClient()
 
     def getDebuggerIds(self):
         """

eric ide

mercurial