Skip to content

Commit

Permalink
fix(lifecycle): handle status before shutdown in manager (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus authored Feb 3, 2025
1 parent 241dd50 commit f49337f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lifecycle/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ func (m *Manager) Run(ctx context.Context) error {

err := m.runFunc(ctx)
close(m.runDone)
<-m.shutdownDone
s = <-m.status
m.status <- s
if s == StatusShutdown {
<-m.shutdownDone
}

return err
}

Expand Down

0 comments on commit f49337f

Please sign in to comment.