Set Voice.Ready to false when opusSender exits

This commit is contained in:
Bruce Marriner 2016-01-27 10:14:53 -06:00
parent 7cc7b09957
commit 7a7848d7ff

View file

@ -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
}