From 7ebf0f9670ec96ac7b836a2edea42e3a328f82e5 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Wed, 1 Feb 2023 11:53:27 +0100 Subject: [PATCH] fix: fix missing early exit on request error --- twitch/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/twitch/client.go b/twitch/client.go index 018a299..7a60b3c 100644 --- a/twitch/client.go +++ b/twitch/client.go @@ -236,6 +236,7 @@ func (c *Client) runStatusPoll() { }) if err != nil { c.logger.Error("Error checking stream status", zap.Error(err)) + return } else { c.streamOnline.Set(len(status.Data.Streams) > 0) }