From 010951083060e1267e4dd726f5322d7309a8fd62 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 --- integration-cli/events_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/events_utils.go b/integration-cli/events_utils.go index 77ec33dfd0..7089be2dc8 100644 --- a/integration-cli/events_utils.go +++ b/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 } } }