The Free Software Media System - Server Backend & API
open before changing pragmas
cvium791413a50f3a
diff --git a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs b/Emby.Server.Implementations/Data/BaseSqliteRepository.csindex e257c9edc7..7b3c7b0bb4 100644--- a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs+++ b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs@@ -101,6 +101,7 @@ namespace Emby.Server.Implementations.Dataprotected SqliteConnection GetConnection(bool readOnly = false){var connection = new SqliteConnection($"Filename={DbFilePath}");+ connection.Open();if (CacheSize.HasValue){@@ -134,7 +135,6 @@ namespace Emby.Server.Implementations.Dataconnection.Execute("PRAGMA temp_store=" + (int)TempStore);- connection.Open();return connection;}