Skip to content

Commit

Permalink
[bugfix] close method moved to finally
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshupei committed Sep 4, 2024
1 parent 9560905 commit 1588154
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 1588154

Please sign in to comment.