forked from gitea/gitea
1
0
Fork 0

Fix signal loop in graceful manager (#19943)

This commit is contained in:
wxiaoguang 2022-06-12 21:50:18 +08:00 committed by GitHub
parent 796c4eca0b
commit a9dc9b06e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ func (g *Manager) handleSignals(ctx context.Context) {
case <-ctx.Done():
log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err())
g.DoGracefulShutdown()
return
}
}
}