diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs index 9c09e1880..2d92f3cfa 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs @@ -23,6 +23,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net; using System.Net.Http; using System.Threading; using CoCoL; diff --git a/Duplicati/Server/Program.cs b/Duplicati/Server/Program.cs index 447e841df..ec867f6df 100644 --- a/Duplicati/Server/Program.cs +++ b/Duplicati/Server/Program.cs @@ -230,7 +230,7 @@ namespace Duplicati.Server LiveControl.StateChanged = (e) => { LiveControl_StateChanged(queueRunner, connection, eventPollNotify, e); }; // Invoke it once to set initial state - LiveControl_StateChanged(queueRunner, connection, eventPollNotify, scheduler, new LiveControls.LiveControlEvent + LiveControl_StateChanged(queueRunner, connection, eventPollNotify, new LiveControls.LiveControlEvent { State = LiveControl.State, TransfersPaused = LiveControl.TransfersPaused,