From eb78a8bdf2c73b2c767d34002b5df940a43db5fc Mon Sep 17 00:00:00 2001 From: XieHan Date: Mon, 1 Aug 2022 22:48:24 +0800 Subject: [PATCH] update WFRepeaterTask --- src/factory/WFTask.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/factory/WFTask.h b/src/factory/WFTask.h index 4003cbf2..a9e958c2 100644 --- a/src/factory/WFTask.h +++ b/src/factory/WFTask.h @@ -745,10 +745,7 @@ protected: series_of(this)->push_front(task); } else - { - this->create = nullptr; this->state = WFT_STATE_SUCCESS; - } this->subtask_done(); } @@ -757,7 +754,7 @@ protected: { SeriesWork *series = series_of(this); - if (!this->create) + if (this->state != WFT_STATE_UNDEFINED) { if (this->callback) this->callback(this);