mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 08:37:07 +00:00
Stop server immediately on migration only mode
This commit is contained in:
parent
63c4fc297a
commit
febfd7f94a
1 changed files with 5 additions and 1 deletions
|
|
@ -251,7 +251,11 @@ namespace Jellyfin.Server
|
|||
if (_setupServer!.IsAlive && !configurationCompleted)
|
||||
{
|
||||
_setupServer!.SoftStop();
|
||||
await Task.Delay(TimeSpan.FromMinutes(10)).ConfigureAwait(false);
|
||||
if (options.StartupMode is null or Configuration.StartupMode.MediaServer)
|
||||
{
|
||||
await Task.Delay(TimeSpan.FromMinutes(10)).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
await _setupServer!.StopAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue