Преглед изворни кода

Unlock what you Lock, fool.

Bruce Marriner пре 8 година
родитељ
комит
e252652fe8
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      voice.go

+ 1 - 0
voice.go

@@ -795,6 +795,7 @@ func (v *VoiceConnection) reconnect() {
 	v.Lock()
 	if v.reconnecting {
 		v.log(LogInformational, "already reconnecting, exiting.")
+		v.Unlock()
 		return
 	}
 	v.reconnecting = true