close q because cancel may be called twice
This commit is contained in:
parent
0e50566921
commit
a0466b7cc4
|
@ -79,6 +79,7 @@ func cmdStream(c *cli.Context) error {
|
|||
}
|
||||
go func() {
|
||||
<-sc
|
||||
close(q)
|
||||
cancel()
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user