U4-8448 Background task runner missing a null check during shutdown

This commit is contained in:
Shannon
2016-05-12 12:27:02 +02:00
parent 8d5556d4bc
commit f130e86c88

View File

@@ -305,7 +305,9 @@ namespace Umbraco.Web.Scheduling
// tasks in the queue will be executed...
if (wait == false) return;
_runningTask.Wait(); // wait for whatever is running to end...
if (_runningTask != null)
_runningTask.Wait(); // wait for whatever is running to end...
}
/// <summary>