Skip to content

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

Guard against pinging YP when offline. Closes #600

Gabe Kangas18abb3dcaaaa
diff --git a/yp/yp.go b/yp/yp.go
index acfadbf39b..8e639c9c05 100644
--- a/yp/yp.go
+++ b/yp/yp.go
@@ -64,6 +64,12 @@ func (yp *YP) ping() {
return
}
+ // Hack: Don't allow ping'ing when offline.
+ // It shouldn't even be trying to, but on some instances the ping timer isn't stopping.
+ if !getStatus().Online {
+ return
+ }
+
myInstanceURL := data.GetServerURL()
if myInstanceURL == "" {
log.Warnln("Server URL not set in the configuration. Directory access is disabled until this is set.")