Skip to content

Commit 732b43f

Browse files
committed
minor change
1 parent f593c9f commit 732b43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyCodeInterpreter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private async Task<CodeInterpretResponse> CoreRunScript(string codeScript, CodeI
140140

141141
cancellationToken.ThrowIfCancellationRequested();
142142

143-
var execTask = Task.Run(() =>
143+
var execTask = Task.Factory.StartNew(() =>
144144
{
145145
using (Py.GIL())
146146
{

0 commit comments

Comments
 (0)