From 9f8b5071b70648b87887ec0ae06d6180e8379fe1 Mon Sep 17 00:00:00 2001 From: Falcon <12919280+falconfly@user.noreply.gitee.com> Date: Thu, 20 Feb 2025 16:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3TimedTask=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs b/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs index 38708bb..725f35b 100644 --- a/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs +++ b/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs @@ -109,8 +109,8 @@ namespace Falcon.SugarApi.TimedBackgroundTask try { var goOn = await this.Run(stoppingToken); this.OnCompleted(this,stoppingToken); - if(goOn) { - continue; + if(!goOn) { + break; } } catch(Exception ex) {