Set Voice.Ready to false when opusSender exits
This commit is contained in:
parent
7cc7b09957
commit
7a7848d7ff
1 changed files with 1 additions and 0 deletions
1
voice.go
1
voice.go
|
@ -422,6 +422,7 @@ func (v *Voice) opusSender(opus <-chan []byte, rate, size int) {
|
|||
// Get data from chan. If chan is closed, return.
|
||||
recvbuf, ok := <-opus
|
||||
if !ok {
|
||||
v.Ready = false
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue