同步任务BUG修复

This commit is contained in:
falcon 2022-08-27 15:41:56 +08:00
parent 1983778d22
commit 9ca95224ae

View File

@ -76,7 +76,7 @@ namespace Falcon.SugarApi.BackTask
}; };
action = () => { action = () => {
OnStart(this); OnStart(this);
while (!TokenSource.Token.IsCancellationRequested) { while (true) {
Thread.Sleep(TimeSpan.FromSeconds(RunTimespan)); Thread.Sleep(TimeSpan.FromSeconds(RunTimespan));
try { try {
if (!Run()) break; if (!Run()) break;