Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ internal void InternalRunSynchronously(TaskScheduler scheduler, bool waitForComp
// to the guideline that an exception implies that no state change took place),
// so it is safe to catch the exception and move the task to a final state. The
// same cannot be said for Wait()/WaitAll()/FastWaitAll().
if (!scheduler.TryRunInline(this, false))
taskQueued = scheduler.TryRunInline(this, false);
if (!taskQueued)
{
scheduler.InternalQueueTask(this);
taskQueued = true; // only mark this after successfully queuing the task.
Expand Down