mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
update startup logging
This commit is contained in:
parent
c524f3919e
commit
1ddbdd8943
1 changed files with 7 additions and 8 deletions
|
@ -221,13 +221,7 @@ namespace MediaBrowser.ServerApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
var task = _appHost.Init(initProgress);
|
var task = _appHost.Init(initProgress);
|
||||||
Task.WaitAll(task);
|
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()));
|
||||||
|
|
||||||
task = _appHost.RunStartupTasks();
|
|
||||||
Task.WaitAll(task);
|
|
||||||
|
|
||||||
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
|
||||||
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
|
||||||
|
|
||||||
if (runService)
|
if (runService)
|
||||||
{
|
{
|
||||||
|
@ -235,6 +229,11 @@ namespace MediaBrowser.ServerApplication
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Task.WaitAll(task);
|
||||||
|
|
||||||
|
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
||||||
|
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
||||||
|
|
||||||
HideSplashScreen();
|
HideSplashScreen();
|
||||||
|
|
||||||
ShowTrayIcon();
|
ShowTrayIcon();
|
||||||
|
|
Loading…
Reference in a new issue