close q because cancel may be called twice

This commit is contained in:
Yasuhiro Matsumoto 2017-05-08 15:20:50 +09:00
parent 0e50566921
commit a0466b7cc4

View File

@ -79,6 +79,7 @@ func cmdStream(c *cli.Context) error {
} }
go func() { go func() {
<-sc <-sc
close(q)
cancel() cancel()
}() }()