Remove channel close.
Send a message instead, discarding duplicated messages. Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: 010951083060e1267e4dd726f5322d7309a8fd62 Component: engine
This commit is contained in:
@ -149,7 +149,7 @@ func matchEventLine(id, eventType string, actions map[string]chan bool) eventMat
|
||||
func processEventMatch(actions map[string]chan bool) eventMatchProcessor {
|
||||
return func(matches map[string]string) {
|
||||
if ch, ok := actions[matches["action"]]; ok {
|
||||
close(ch)
|
||||
ch <- true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user