Skip to content

Commit a729269

Browse files
committed
added gcthread cleanup on failure.
1 parent c452493 commit a729269

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/PluginManagementService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@ private async Task RunGC(bool logResults, bool runOnMainThread)
10091009
}
10101010
catch (TimeoutException te)
10111011
{
1012-
_logger.LogError($"{nameof(RunGC)}: The GC task thread has timed out.");
1012+
_logger.LogError($"{nameof(RunGC)}: The GC task thread has timed out.");
1013+
gcThread.Interrupt();
1014+
gcThread.Join();
10131015
}
10141016

10151017
if (logResults)

0 commit comments

Comments
 (0)