diff --git a/Duplicati/Library/RestAPI/Scheduler.cs b/Duplicati/Library/RestAPI/Scheduler.cs index 91f102668..bbf5d6219 100644 --- a/Duplicati/Library/RestAPI/Scheduler.cs +++ b/Duplicati/Library/RestAPI/Scheduler.cs @@ -94,8 +94,8 @@ namespace Duplicati.Server /// The worker thread public void Init(WorkerThread worker) { - m_thread = new Thread(new ThreadStart(Runner)); m_worker = worker; + m_thread = new Thread(new ThreadStart(Runner)); m_worker.CompletedWork += OnCompleted; m_worker.StartingWork += OnStartingWork; m_schedule = new KeyValuePair[0];