non-blocking send

This commit is contained in:
sabban 2022-05-20 14:40:10 +02:00
parent b168820dbe
commit 644d0fe955

View file

@ -134,7 +134,10 @@ func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
}
case <-pw.tomb.Dying():
ticker.Stop()
pw.PluginEvents <- pluginName
select {
case pw.PluginEvents <- pluginName:
default:
}
log.Tracef("sending alerts to %s", pluginName)
return
}