Skip to content

Commit 988c58e

Browse files
committed
fix(flow):1.11.12, 修复SerialAssembleAction::onReset()没有调基类的问题; 优化onStop(),添加对child_finish_func_与curr_action_清除操作
1 parent 26eef30 commit 988c58e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

modules/flow/actions/assemble_action.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ void AssembleAction::onFinal()
5454
final_cb_();
5555
}
5656

57+
//////////////////////////
58+
// SerialAssembleAction
59+
//////////////////////////
60+
5761
bool SerialAssembleAction::startThisAction(Action *action)
5862
{
5963
if (action->start()) {
@@ -130,8 +134,8 @@ void SerialAssembleAction::onResume()
130134

131135
void SerialAssembleAction::onStop()
132136
{
133-
if (curr_action_ != nullptr)
134-
curr_action_->stop();
137+
stopCurrAction();
138+
child_finish_func_ = nullptr;
135139

136140
AssembleAction::onStop();
137141
}
@@ -140,6 +144,8 @@ void SerialAssembleAction::onReset()
140144
{
141145
curr_action_ = nullptr;
142146
child_finish_func_ = nullptr;
147+
148+
AssembleAction::onReset();
143149
}
144150

145151
}

version.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# TBOX版本号
2222
TBOX_VERSION_MAJOR := 1
2323
TBOX_VERSION_MINOR := 11
24-
TBOX_VERSION_REVISION := 11
24+
TBOX_VERSION_REVISION := 12

0 commit comments

Comments
 (0)