non-blocking send
This commit is contained in:
parent
c994e50844
commit
5fb61756df
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue