forked from pothtonswer/discordmuffin
Unexported WaitUntilConnected
This isn't needed now that the ChannelVoiceJoin waits for the connection before returning, or returns an error.
This commit is contained in:
parent
513facf391
commit
b1ac010731
2 changed files with 2 additions and 2 deletions
2
voice.go
2
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 {
|
||||
|
|
2
wsapi.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue