修正TimedTask错误

This commit is contained in:
Falcon 2025-02-20 16:33:32 +08:00
parent 6e68a8ad8c
commit 9f8b5071b7

View File

@ -109,8 +109,8 @@ namespace Falcon.SugarApi.TimedBackgroundTask
try { try {
var goOn = await this.Run(stoppingToken); var goOn = await this.Run(stoppingToken);
this.OnCompleted(this,stoppingToken); this.OnCompleted(this,stoppingToken);
if(goOn) { if(!goOn) {
continue; break;
} }
} }
catch(Exception ex) { catch(Exception ex) {