diff options
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index bb93ef138..d0f2bafb4 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -198,7 +198,7 @@ namespace Jellyfin.Server _logger.LogInformation("Running query planner optimizations in the database... This might take a while"); var databaseProvider = appHost.ServiceProvider.GetRequiredService<IJellyfinDatabaseProvider>(); - var shutdownSource = new CancellationTokenSource(); + using var shutdownSource = new CancellationTokenSource(); shutdownSource.CancelAfter((int)TimeSpan.FromSeconds(60).TotalMicroseconds); await databaseProvider.RunShutdownTask(shutdownSource.Token).ConfigureAwait(false); } |
