Skip to content

The Free Software Media System - Server Backend & API

Merge remote-tracking branch 'jellyfinorigin/master' into feature/10.10/DetachedMigration

JPVenson8c0b0d910229
diff --cc Jellyfin.Server/Program.cs
index 3d92caac46,3f73c15b4a..7e50100b09
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@@ -10,11 -10,10 +10,12 @@@ using Emby.Server.Implementations
using Jellyfin.Server.Extensions;
using Jellyfin.Server.Helpers;
using Jellyfin.Server.Implementations;
+using Jellyfin.Server.ServerSetupApp;
using MediaBrowser.Common.Configuration;
+using MediaBrowser.Common.Net;
using MediaBrowser.Controller;
using Microsoft.AspNetCore.Hosting;
+ using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@@ -213,10 -206,14 +216,15 @@@ namespace Jellyfin.Serve
await context.Database.ExecuteSqlRawAsync("PRAGMA optimize").ConfigureAwait(false);
}
}
+
+ if (isSqlite)
+ {
+ SqliteConnection.ClearAllPools();
+ }
}
- host?.Dispose();
+ _appHost = null;
+ _jellyfinHost?.Dispose();
}
}