update startup error handling

This commit is contained in:
Luke Pulverenti 2016-05-24 14:17:12 -04:00
parent 3b4975323c
commit 6647ff335f

View File

@ -244,7 +244,9 @@ namespace MediaBrowser.ServerApplication
var task = _appHost.Init(initProgress);
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()));
Task.WaitAll(task);
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()), TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.AttachedToParent);
if (runService)
{