update save methods

This commit is contained in:
Luke Pulverenti
2016-11-19 03:40:13 -05:00
parent ffb1ec76a7
commit 52227ce00d
9 changed files with 117 additions and 60 deletions
@@ -50,7 +50,7 @@ namespace Emby.Server.Implementations.Social
throw new ArgumentNullException("info.Id");
}
lock (WriteLock)
using (WriteLock.Write())
{
using (var connection = CreateConnection())
{
@@ -75,7 +75,7 @@ namespace Emby.Server.Implementations.Social
throw new ArgumentNullException("id");
}
lock (WriteLock)
using (WriteLock.Read())
{
using (var connection = CreateConnection(true))
{