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:
parent
146e414942
commit
7ebf0f9670
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue