move scheduled task startup

This commit is contained in:
Luke Pulverenti 2016-05-23 15:21:38 -04:00
parent b23ca6a04c
commit 5433ebb5cf
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,6 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
_fileSystem = fileSystem; _fileSystem = fileSystem;
ScheduledTasks = new IScheduledTaskWorker[] { }; ScheduledTasks = new IScheduledTaskWorker[] { };
BindToSystemEvent();
} }
private void BindToSystemEvent() private void BindToSystemEvent()
@ -259,6 +257,8 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
myTasks.AddRange(list.Select(t => new ScheduledTaskWorker(t, ApplicationPaths, this, JsonSerializer, Logger, _fileSystem))); myTasks.AddRange(list.Select(t => new ScheduledTaskWorker(t, ApplicationPaths, this, JsonSerializer, Logger, _fileSystem)));
ScheduledTasks = myTasks.ToArray(); ScheduledTasks = myTasks.ToArray();
BindToSystemEvent();
} }
/// <summary> /// <summary>