Merge pull request #37454 from xiaolou86/close-channel

Automatic merge from submit-queue

fix bug of closing the same channel multiple times

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->


**Which issue this PR fixes**: fixes #37444 

**Release note**:None
pull/6/head
Kubernetes Submit Queue 2016-11-30 08:43:51 -08:00 committed by GitHub
commit 8a99f17f24
1 changed files with 0 additions and 2 deletions

View File

@ -108,7 +108,6 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate {
for update := range endpointsCh {
ch <- update
}
close(ch)
}()
return endpointsCh
}
@ -217,7 +216,6 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
for update := range serviceCh {
ch <- update
}
close(ch)
}()
return serviceCh
}