From b34c989c441cd3670cbb9d3bea692916883b0412 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 8 Oct 2025 16:02:23 -0500 Subject: [PATCH] revert --- .../PythonInterpreterPlugin.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs b/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs index 303ae41a7..bee046e51 100644 --- a/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs +++ b/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs @@ -39,16 +39,12 @@ public void Configure(IApplicationBuilder app) { Runtime.PythonDLL = pyLoc; PythonEngine.Initialize(); -#if DEBUG _pyState = PythonEngine.BeginAllowThreads(); -#endif lifetime.ApplicationStopping.Register(() => { try { -#if DEBUG PythonEngine.EndAllowThreads(_pyState); -#endif PythonEngine.Shutdown(); } catch { }