From 403e4970f79f403baae9f3131ff4522fdfa7912f Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Mon, 2 Mar 2020 19:18:33 -0800 Subject: [PATCH] Gateway: Fixed a deadlocking mutex --- gateway/gateway.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 1829cb0..0a1b425 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -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...")