Skip to content

Commit

Permalink
修复 情景出现错误时情景未停止
Browse files Browse the repository at this point in the history
  • Loading branch information
MakesYT committed Jan 4, 2025
1 parent 82f5367 commit 65bfeb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Core/SDKs/CustomScenario/CustomScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,13 @@ public void Stop(bool inTickError = false)
{
Console.WriteLine(e);
}
if (!inTickError)
{
foreach (var task in _initTasks) task.Value?.Join();

foreach (var task in _initTasks) task.Value?.Join();

foreach (var task in _tickTasks) task.Value?.Join();
foreach (var task in _tickTasks) task.Value?.Join();
}


_initTasks.Clear();
_tickTasks.Clear();
Expand Down

0 comments on commit 65bfeb0

Please sign in to comment.