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) {