From 57e822cfb98e6c64f70d4551a9faa64bda959f8a Mon Sep 17 00:00:00 2001 From: Alphagocc Date: Sun, 28 Jul 2024 12:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E5=BC=80=E6=9C=BA=E8=87=AA=E5=90=AF?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=97=A0=E9=99=90=E6=9C=9F=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Librarys/SystemCommon.cs | 1 + 1 file changed, 1 insertion(+) 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); } }