|
|
@ -226,8 +226,6 @@ namespace MediaBrowser.ServerApplication
|
|
|
|
ErrorModes.SEM_NOGPFAULTERRORBOX | ErrorModes.SEM_NOOPENFILEERRORBOX);
|
|
|
|
ErrorModes.SEM_NOGPFAULTERRORBOX | ErrorModes.SEM_NOOPENFILEERRORBOX);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
|
|
|
|
|
|
|
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var task = _appHost.Init(initProgress);
|
|
|
|
var task = _appHost.Init(initProgress);
|
|
|
|
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()));
|
|
|
|
task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks()));
|
|
|
@ -240,6 +238,9 @@ namespace MediaBrowser.ServerApplication
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Task.WaitAll(task);
|
|
|
|
Task.WaitAll(task);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
|
|
|
|
|
|
|
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
|
|
|
|
|
|
|
|
|
|
|
HideSplashScreen();
|
|
|
|
HideSplashScreen();
|
|
|
|
|
|
|
|
|
|
|
|
ShowTrayIcon();
|
|
|
|
ShowTrayIcon();
|
|
|
|