Skip to content

Commit

Permalink
fix: set another variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 8, 2022
1 parent f69d990 commit aa19e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ func (g *Manager) doGracefulShutdown() {
g.shutdownCtxCancel()
// doing shutdown job
for _, f := range g.runAtShutdown {
run := f
g.runningWaitGroup.Run(func() {
g.doShutdownJob(f)
g.doShutdownJob(run)
})
}
go func() {
Expand Down

0 comments on commit aa19e43

Please sign in to comment.