update components

This commit is contained in:
Luke Pulverenti 2016-11-25 01:58:38 -05:00
parent 9606a2a710
commit a9645e1429

View File

@ -58,9 +58,9 @@ namespace Emby.Server.Implementations.Activity
throw new ArgumentNullException("entry");
}
using (var connection = CreateConnection())
{
using (WriteLock.Write())
{
using (var connection = CreateConnection())
{
connection.RunInTransaction(db =>
{
@ -85,10 +85,10 @@ namespace Emby.Server.Implementations.Activity
}
public QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, int? startIndex, int? limit)
{
using (var connection = CreateConnection(true))
{
using (WriteLock.Read())
{
using (var connection = CreateConnection(true))
{
var commandText = BaseActivitySelectText;
var whereClauses = new List<string>();