mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 23:52:12 +00:00
Fix shutdown crash with nil mesh router
This commit is contained in:
parent
029c70d6fe
commit
f64a419853
@ -238,8 +238,10 @@ func main() {
|
||||
|
||||
defer func() {
|
||||
close(stopc)
|
||||
// Stop receiving updates from router before shutting down.
|
||||
mrouter.Stop()
|
||||
if *meshListen != "" {
|
||||
// Stop receiving updates from router before shutting down.
|
||||
mrouter.Stop()
|
||||
}
|
||||
wg.Wait()
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user