Explorar el Código

Set Voice.Ready to false when opusSender exits

Bruce Marriner hace 9 años
padre
commit
7a7848d7ff
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      voice.go

+ 1 - 0
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
 		}