1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-28 21:29:25 +00:00

Gateway: Fixed a deadlocking mutex

This commit is contained in:
diamondburned (Forefront) 2020-03-02 19:18:33 -08:00
parent 0aebea60bd
commit 403e4970f7

View file

@ -174,9 +174,6 @@ func (g *Gateway) Close() error {
func (g *Gateway) Reconnect() error {
WSDebug("Reconnecting...")
g.available.Lock()
defer g.available.Unlock()
// If the event loop is not dead:
if g.paceDeath != nil {
WSDebug("Gateway is not closed, closing before reconnecting...")