From cb96c5b0f770e1b74084da3144514d984d4fb9b1 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Tue, 20 Dec 2016 12:00:34 -0600 Subject: [PATCH] Log voice connect error in the right place. --- voice.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voice.go b/voice.go index 34f5e75..e92c112 100644 --- a/voice.go +++ b/voice.go @@ -837,6 +837,8 @@ func (v *VoiceConnection) reconnect() { return } + v.log(LogInformational, "error reconnecting to channel %s, %s", v.ChannelID, err) + // if the reconnect above didn't work lets just send a disconnect // packet to reset things. // Send a OP4 with a nil channel to disconnect @@ -848,6 +850,5 @@ func (v *VoiceConnection) reconnect() { v.log(LogError, "error sending disconnect packet, %s", err) } - v.log(LogInformational, "error reconnecting to channel %s, %s", v.ChannelID, err) } }