Race condition fixed
This commit is contained in:
1 parent
2bf9ff233c
commit
6678f24887
1 file changed
+7
-1
@@ -171,7 +171,13 @@ internal sealed class TaskThreadPool
|
||||
return;
|
||||
}
|
||||
|
||||
_taskExecutor(workItem.Task);
|
||||
Task? task = workItem.Task;
|
||||
if (task is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_taskExecutor(task);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user