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