non-blocking send

This commit is contained in:
sabban 2022-05-20 14:40:10 +02:00
parent c994e50844
commit 5fb61756df

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
}