1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

fix: fix missing early exit on request error

This commit is contained in:
Ash Keel 2023-02-01 11:53:27 +01:00
parent 146e414942
commit 7ebf0f9670
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -236,6 +236,7 @@ func (c *Client) runStatusPoll() {
}) })
if err != nil { if err != nil {
c.logger.Error("Error checking stream status", zap.Error(err)) c.logger.Error("Error checking stream status", zap.Error(err))
return
} else { } else {
c.streamOnline.Set(len(status.Data.Streams) > 0) c.streamOnline.Set(len(status.Data.Streams) > 0)
} }