Log voice connect error in the right place.

This commit is contained in:
Bruce Marriner 2016-12-20 12:00:34 -06:00
parent 2730035a13
commit cb96c5b0f7

View file

@ -837,6 +837,8 @@ func (v *VoiceConnection) reconnect() {
return 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 // if the reconnect above didn't work lets just send a disconnect
// packet to reset things. // packet to reset things.
// Send a OP4 with a nil channel to disconnect // 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(LogError, "error sending disconnect packet, %s", err)
} }
v.log(LogInformational, "error reconnecting to channel %s, %s", v.ChannelID, err)
} }
} }