mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +01:00
fix directory not found error in episode organization
This commit is contained in:
@@ -216,11 +216,7 @@ namespace MediaBrowser.ServerApplication
|
||||
|
||||
var initProgress = new Progress<double>();
|
||||
|
||||
if (runService)
|
||||
{
|
||||
StartService(logManager);
|
||||
}
|
||||
else
|
||||
if (!runService)
|
||||
{
|
||||
ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash"));
|
||||
|
||||
@@ -235,18 +231,22 @@ namespace MediaBrowser.ServerApplication
|
||||
task = _appHost.RunStartupTasks();
|
||||
Task.WaitAll(task);
|
||||
|
||||
if (!runService)
|
||||
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
||||
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
||||
|
||||
if (runService)
|
||||
{
|
||||
StartService(logManager);
|
||||
}
|
||||
else
|
||||
{
|
||||
HideSplashScreen();
|
||||
|
||||
ShowTrayIcon();
|
||||
|
||||
task = ApplicationTaskCompletionSource.Task;
|
||||
Task.WaitAll(task);
|
||||
}
|
||||
|
||||
SystemEvents.SessionEnding += SystemEvents_SessionEnding;
|
||||
SystemEvents.SessionSwitch += SystemEvents_SessionSwitch;
|
||||
|
||||
task = ApplicationTaskCompletionSource.Task;
|
||||
Task.WaitAll(task);
|
||||
}
|
||||
|
||||
private static ServerNotifyIcon _serverNotifyIcon;
|
||||
|
||||
Reference in New Issue
Block a user