mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove channel close.
Send a message instead, discarding duplicated messages. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
776c5ee299
commit
0109510830
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ func matchEventLine(id, eventType string, actions map[string]chan bool) eventMat
|
||||||
func processEventMatch(actions map[string]chan bool) eventMatchProcessor {
|
func processEventMatch(actions map[string]chan bool) eventMatchProcessor {
|
||||||
return func(matches map[string]string) {
|
return func(matches map[string]string) {
|
||||||
if ch, ok := actions[matches["action"]]; ok {
|
if ch, ok := actions[matches["action"]]; ok {
|
||||||
close(ch)
|
ch <- true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue