forked from pothtonswer/discordmuffin
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.
|
// Get data from chan. If chan is closed, return.
|
||||||
recvbuf, ok := <-opus
|
recvbuf, ok := <-opus
|
||||||
if !ok {
|
if !ok {
|
||||||
|
v.Ready = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue