Skip to content

Commit

Permalink
fix: clear err after app stop err handling (#3146)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawlielt authored Jan 5, 2024
1 parent 21de240 commit 34d9666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (a *App) Run() error {
if err = eg.Wait(); err != nil && !errors.Is(err, context.Canceled) {
return err
}
err = nil
for _, fn := range a.opts.afterStop {
err = fn(sctx)
}
Expand Down

0 comments on commit 34d9666

Please sign in to comment.