Browse Source

Cleanup voice connection on close

andrei 8 years ago
parent
commit
cf222be2f8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      voice.go

+ 2 - 0
voice.go

@@ -643,6 +643,8 @@ func (v *VoiceConnection) Close() {
 		}
 		v.wsConn = nil
 	}
+
+	delete(v.session.VoiceConnections, v.GuildID)
 }
 
 // Request to change channels