Skip to content

Commit

Permalink
[bugfix] close method moved to finally (#5165)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshupei authored Sep 4, 2024
1 parent 9560905 commit b6e929a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ trait ManageableOnceExecutor extends AccessibleExecutor with OnceExecutor with R
logger.error(msg)
Utils.tryFinally {
this.ensureAvailable(transition(NodeStatus.Failed))
} {
close()
}(stopOnceExecutor(msg))
stopOnceExecutor(msg)
}
true
}

Expand All @@ -197,8 +199,10 @@ trait ManageableOnceExecutor extends AccessibleExecutor with OnceExecutor with R
logger.warn(msg)
Utils.tryFinally {
this.ensureAvailable(transition(NodeStatus.Success))
} {
close()
}(stopOnceExecutor(msg))
stopOnceExecutor(msg)
}
true
}

Expand Down

0 comments on commit b6e929a

Please sign in to comment.