mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge pull request #52 from lippserd/bugfix/ctx-cancel
Remove always-false if
This commit is contained in:
commit
f84c882b28
1 changed files with 0 additions and 3 deletions
|
|
@ -96,9 +96,6 @@ func main() {
|
|||
case <-hactx.Done():
|
||||
// Nothing to do here, surrounding loop will terminate now.
|
||||
case <-ctx.Done():
|
||||
if err := ctx.Err(); err != nil && !utils.IsContextCanceled(err) {
|
||||
panic(err)
|
||||
}
|
||||
return
|
||||
case s := <-sig:
|
||||
logger.Infow("Exiting due to signal", zap.String("signal", s.String()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue