From c8fc37ebf6976dda2a2b58dcd4fde3fbaa6064b1 Mon Sep 17 00:00:00 2001 From: "Dr. Jochen Manns" Date: Tue, 31 Mar 2026 09:37:25 +0200 Subject: [PATCH] Restart is informed on dispose. --- Library/Scripting/Debugger/ScriptDebugger.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Scripting/Debugger/ScriptDebugger.cs b/Library/Scripting/Debugger/ScriptDebugger.cs index 5dbbb39..d308295 100644 --- a/Library/Scripting/Debugger/ScriptDebugger.cs +++ b/Library/Scripting/Debugger/ScriptDebugger.cs @@ -269,7 +269,8 @@ protected virtual Task StopAsync() /// /// Restart regular execution. /// - protected virtual void Restart() + /// Set when restart is called during dispose. + protected virtual void Restart(bool disposing = false) { var stop = _stop; @@ -279,6 +280,6 @@ protected virtual void Restart() /// public void Dispose() { - Restart(); + Restart(true); } } \ No newline at end of file