From b1ac0107310e71487047a022c0a25353a8da0d93 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Thu, 17 Mar 2016 15:57:40 -0500 Subject: [PATCH] Unexported WaitUntilConnected This isn't needed now that the ChannelVoiceJoin waits for the connection before returning, or returns an error. --- voice.go | 2 +- wsapi.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/voice.go b/voice.go index fef7ff3..0a6885e 100644 --- a/voice.go +++ b/voice.go @@ -93,7 +93,7 @@ func (v *VoiceConnection) Speaking(b bool) (err error) { // WaitUntilConnected waits for the Voice Connection to // become ready, if it does not become ready it retuns an err -func (v *VoiceConnection) WaitUntilConnected() error { +func (v *VoiceConnection) waitUntilConnected() error { i := 0 for { diff --git a/wsapi.go b/wsapi.go index 5cc17d0..dc9ed3e 100644 --- a/wsapi.go +++ b/wsapi.go @@ -371,7 +371,7 @@ func (s *Session) ChannelVoiceJoin(gID, cID string, mute, deaf bool) (voice *Voi } // doesn't exactly work perfect yet.. TODO - err = voice.WaitUntilConnected() + err = voice.waitUntilConnected() if err != nil { voice.Close() delete(s.VoiceConnections, gID)