Removes the 'else' so that 'wait' is always checked.

This commit is contained in:
Shannon
2015-02-17 15:05:42 +01:00
parent be37026587
commit 4c3de920c6

View File

@@ -231,12 +231,11 @@ namespace Umbraco.Web.Scheduling
// truncate running queues
_tokenSource.Cancel(false); // false is the default
}
else
{
// tasks in the queue will be executed...
if (wait == false) return;
_runningTask.Wait(); // wait for whatever is running to end...
}
// tasks in the queue will be executed...
if (wait == false) return;
_runningTask.Wait(); // wait for whatever is running to end...
}
/// <summary>