mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
fix: Avoid opening read connections without mutexes
This commit is contained in:
@@ -103,8 +103,8 @@ namespace Emby.Server.Implementations.Data
|
||||
{
|
||||
if (readOnly)
|
||||
{
|
||||
ReadConnection ??= SQLite3.Open(DbFilePath, DefaultConnectionFlags | ConnectionFlags.ReadOnly, null);
|
||||
return new ManagedConnection(ReadConnection, null);
|
||||
ReadConnection ??= SQLite3.Open(DbFilePath, ConnectionFlags.ReadOnly, null);
|
||||
return new ManagedConnection(ReadConnection, null!);
|
||||
}
|
||||
|
||||
WriteLock.Wait();
|
||||
|
||||
Reference in New Issue
Block a user