1
0
Fork 0

Finished channel is already closed

This commit is contained in:
Gregory Eremin 2014-09-12 00:05:44 +04:00
parent c7b4f74333
commit e572542330
2 changed files with 0 additions and 2 deletions

View File

@ -52,6 +52,5 @@ func (s *Subscription) Done() <-chan struct{} {
}
func (s *Subscription) Close() {
close(s.result)
close(s.done)
}

View File

@ -86,7 +86,6 @@ func subHandler(w http.ResponseWriter, r *http.Request) {
select {
case <-disconnected:
sub.Close()
close(finished)
case <-finished:
}
}()