From 3312c665156b9fad0f72cd045afaf4945ee9966c Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 19 Aug 2020 21:32:25 -0700 Subject: [PATCH] Voice: Made EventLoop a valid struct value instead of nil pointer --- voice/voicegateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice/voicegateway/gateway.go b/voice/voicegateway/gateway.go index 7be7fdb..d01186a 100644 --- a/voice/voicegateway/gateway.go +++ b/voice/voicegateway/gateway.go @@ -56,7 +56,7 @@ type Gateway struct { Timeout time.Duration reconnect moreatomic.Bool - EventLoop *wsutil.PacemakerLoop + EventLoop wsutil.PacemakerLoop // ErrorLog will be called when an error occurs (defaults to log.Println) ErrorLog func(err error)