aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteUserRepository.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-03-11 22:33:27 +0100
committerBond_009 <bond.009@outlook.com>2019-06-28 12:13:34 +0200
commit27c29bbb4c75d5fc5c9111c5552c37a1f137dd58 (patch)
tree02a330700c18119608a4ed4384f341f6a59fca6a /Emby.Server.Implementations/Data/SqliteUserRepository.cs
parent30842656a7fb1d23eef245dcfb57287ebdb960a0 (diff)
Back to a single connection
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteUserRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteUserRepository.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteUserRepository.cs b/Emby.Server.Implementations/Data/SqliteUserRepository.cs
index ef8ae60b3..e79b3d601 100644
--- a/Emby.Server.Implementations/Data/SqliteUserRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteUserRepository.cs
@@ -40,7 +40,6 @@ namespace Emby.Server.Implementations.Data
/// <returns>Task.</returns>
public void Initialize()
{
- CreateConnections().GetAwaiter().GetResult();
using (var connection = GetConnection())
{
RunDefaultInitialization(connection);
@@ -90,8 +89,7 @@ namespace Emby.Server.Implementations.Data
user.Password = null;
var serialized = _jsonSerializer.SerializeToBytes(user);
- using (WriteLock.Write())
- using (var connection = CreateConnection())
+ using (var connection = GetConnection())
{
connection.RunInTransaction(db =>
{