소스 검색

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
 		}