mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-16 10:37:09 +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() {
|
defer func() {
|
||||||
close(stopc)
|
close(stopc)
|
||||||
// Stop receiving updates from router before shutting down.
|
if *meshListen != "" {
|
||||||
mrouter.Stop()
|
// Stop receiving updates from router before shutting down.
|
||||||
|
mrouter.Stop()
|
||||||
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user