mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
open before changing pragmas
This commit is contained in:
parent
cf04b43fa4
commit
791413a50f
@ -101,6 +101,7 @@ namespace Emby.Server.Implementations.Data
|
||||
protected SqliteConnection GetConnection(bool readOnly = false)
|
||||
{
|
||||
var connection = new SqliteConnection($"Filename={DbFilePath}");
|
||||
connection.Open();
|
||||
|
||||
if (CacheSize.HasValue)
|
||||
{
|
||||
@ -134,7 +135,6 @@ namespace Emby.Server.Implementations.Data
|
||||
|
||||
connection.Execute("PRAGMA temp_store=" + (int)TempStore);
|
||||
|
||||
connection.Open();
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user