mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化执行结点
This commit is contained in:
@@ -478,6 +478,15 @@ func (en *BaseExecNode) GetOutPortArrayLen(index int) Port_Int {
|
||||
}
|
||||
|
||||
func (en *BaseExecNode) DoNext(index int) error {
|
||||
// 记录之前的上下文,执行完后需要恢复
|
||||
preExContext := en.ExecContext
|
||||
preExecNode := en.execNode
|
||||
|
||||
defer func() {
|
||||
en.ExecContext = preExContext
|
||||
en.execNode = preExecNode
|
||||
}()
|
||||
|
||||
// -1 表示中断运行
|
||||
if index == -1 {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user