close q because cancel may be called twice

pull/55/head
Yasuhiro Matsumoto 2017-05-08 15:20:50 +09:00
parent 0e50566921
commit a0466b7cc4
1 changed files with 1 additions and 0 deletions

View File

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