update startup logging
This commit is contained in:
parent
c524f3919e
commit
1ddbdd8943
|
@ -221,13 +221,7 @@ namespace MediaBrowser.ServerApplication
|
|||
}
|
||||
|
||||
var task = _appHost.Init(initProgress);
|
||||
Task.WaitAll(task);
|
||||
|
||||
task = _appHost.RunStartupTasks();
|
||||
Task.WaitAll(task);
|
||||
|
||||
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
||||
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
||||
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()));
|
||||
|
||||
if (runService)
|
||||
{
|
||||
|
@ -235,6 +229,11 @@ namespace MediaBrowser.ServerApplication
|
|||
}
|
||||
else
|
||||
{
|
||||
Task.WaitAll(task);
|
||||
|
||||
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
||||
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
||||
|
||||
HideSplashScreen();
|
||||
|
||||
ShowTrayIcon();
|
||||
|
|
Loading…
Reference in New Issue
Block a user