Skip to content

Commit eb6fae2

Browse files
committed
move notify to cleanup routine
Signed-off-by: Andrew Thornton <[email protected]>
1 parent fb82837 commit eb6fae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/graceful/manager_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ func (g *Manager) start(ctx context.Context) {
123123
// Ignore the error here there's not much we can do with it
124124
// They're logged in the CloseProvidedListeners function
125125
_ = CloseProvidedListeners()
126+
g.notify(readyMsg)
126127
}()
127128
if setting.StartupTimeout > 0 {
128129
go func() {
129130
select {
130131
case <-startupDone:
131-
g.notify(readyMsg)
132132
return
133133
case <-g.IsShutdown():
134134
func() {

0 commit comments

Comments
 (0)