alertmanager/cmd
Julius Volz a38c5b8f1d
Fix stopping of nil Dispatcher (#2897)
The function value and parameters of a defer statement are immediately
evaluated, so this "disp" value is always nil, and calling Stop() on a nil
dispatcher is a no-op, so this does nothing, but wrapping it in a closure
that refers to "disp" fixes it.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2022-05-03 11:00:59 +02:00
..
alertmanager Fix stopping of nil Dispatcher (#2897) 2022-05-03 11:00:59 +02:00
amtool *: add missing license headers 2018-05-14 17:37:13 +02:00