Race condition fixed

This commit is contained in:
mlemanczyk committed 2025-12-25 23:14:12 +01:00
1 parent 2bf9ff233c
commit 6678f24887
1 file changed
+7 -1
+7 -1
View File
@@ -171,7 +171,13 @@ internal sealed class TaskThreadPool
return;
}
_taskExecutor(workItem.Task);
Task? task = workItem.Task;
if (task is null)
{
return;
}
_taskExecutor(task);
}
finally
{