mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
update WFRepeaterTask
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user