瀏覽代碼

Set Voice.Ready to false when opusSender exits

Bruce Marriner 9 年之前
父節點
當前提交
7a7848d7ff
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
 		}