close q because cancel may be called twice
This commit is contained in:
parent
0e50566921
commit
a0466b7cc4
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ func cmdStream(c *cli.Context) error {
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
<-sc
|
<-sc
|
||||||
|
close(q)
|
||||||
cancel()
|
cancel()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue