Browse Source

Set Voice.Ready to false when opusSender exits

Bruce Marriner 9 years ago
parent
commit
7a7848d7ff
1 changed files with 1 additions and 0 deletions
  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.
 		// Get data from chan.  If chan is closed, return.
 		recvbuf, ok := <-opus
 		recvbuf, ok := <-opus
 		if !ok {
 		if !ok {
+			v.Ready = false
 			return
 			return
 		}
 		}