diff --git a/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs b/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs index 303ae41a..bee046e5 100644 --- a/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs +++ b/src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs @@ -39,16 +39,12 @@ public class PythonInterpreterPlugin : IBotSharpAppPlugin { Runtime.PythonDLL = pyLoc; PythonEngine.Initialize(); -#if DEBUG _pyState = PythonEngine.BeginAllowThreads(); -#endif lifetime.ApplicationStopping.Register(() => { try { -#if DEBUG PythonEngine.EndAllowThreads(_pyState); -#endif PythonEngine.Shutdown(); } catch { }