From f1882e8081b44f4ca5177741770818906a7c32d3 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Wed, 17 Feb 2016 22:52:06 -0500 Subject: [PATCH] Remove channel close. Send a message instead, discarding duplicated messages. Signed-off-by: David Calavera Upstream-commit: 010951083060e1267e4dd726f5322d7309a8fd62 Component: engine --- components/engine/integration-cli/events_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/integration-cli/events_utils.go b/components/engine/integration-cli/events_utils.go index 77ec33dfd0..7089be2dc8 100644 --- a/components/engine/integration-cli/events_utils.go +++ b/components/engine/integration-cli/events_utils.go @@ -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 } } }