diff --git a/Core/Librarys/SystemCommon.cs b/Core/Librarys/SystemCommon.cs index 24133ad..594d079 100644 --- a/Core/Librarys/SystemCommon.cs +++ b/Core/Librarys/SystemCommon.cs @@ -43,6 +43,7 @@ public static bool SetStartup(bool startup = true) task.Actions.Add(new ExecAction(tai, "--selfStart", AppDomain.CurrentDomain.BaseDirectory)); task.Settings.StopIfGoingOnBatteries = false; task.Settings.DisallowStartIfOnBatteries = false; + task.Settings.ExecutionTimeLimit = TimeSpan.Zero; // Run indefinitely taskService.RootFolder.RegisterTaskDefinition(TaskName, task); } }