From 7a7848d7ffb9f8db946be229313a434ad9672fbc Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Wed, 27 Jan 2016 10:14:53 -0600 Subject: [PATCH] Set Voice.Ready to false when opusSender exits --- voice.go | 1 + 1 file changed, 1 insertion(+) diff --git a/voice.go b/voice.go index 3a1df9e..6ece6e8 100644 --- a/voice.go +++ b/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 }