Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix nre when handling failed browser push notifications. Closes #2855

Gabe Kangas11fb50ee23cd
diff --git a/notifications/browser/browser.go b/notifications/browser/browser.go
index 2bf4694fb5..0740d777fd 100644
--- a/notifications/browser/browser.go
+++ b/notifications/browser/browser.go
@@ -72,10 +72,12 @@ func (b *Browser) Send(
// Not really the subscriber, but a contact point for the sender.
Subscriber: "[email protected]",
})
+ if err != nil {
+ return false, errors.Wrap(err, "error sending browser push notification")
+ }
+
if resp.StatusCode == 410 {
return true, nil
- } else if err != nil {
- return false, errors.Wrap(err, "error sending browser push notification")
}
defer resp.Body.Close()