mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
Implement reinject command to send notifications of alerts (#1638)
* implement reinject command to send notifications of alerts using a profile Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
parent
21255b6391
commit
7d0f89df29
4 changed files with 200 additions and 29 deletions
|
@ -139,6 +139,9 @@ func (pw *PluginWatcher) watchPluginTicker(pluginName string) {
|
|||
}
|
||||
case <-pw.tomb.Dying():
|
||||
ticker.Stop()
|
||||
// emptying
|
||||
// no lock here because we have the broker still listening even in dying state before killing us
|
||||
pw.PluginEvents <- pluginName
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue