aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-13 14:30:54 +0000
committerMario <mario@mariovavti.com>2019-11-13 14:30:54 +0000
commitf3fa2d853ab04441e223b0074462bf11c6f99184 (patch)
treed8799e180f9b52e5a3d3f1d17e7f532f338fe2d9 /Zotlabs/Module
parenta982aecd5b2f8f36507f6893028232d7f7a4c008 (diff)
downloadvolse-hubzilla-f3fa2d853ab04441e223b0074462bf11c6f99184.tar.gz
volse-hubzilla-f3fa2d853ab04441e223b0074462bf11c6f99184.tar.bz2
volse-hubzilla-f3fa2d853ab04441e223b0074462bf11c6f99184.zip
sse: make sure we have an observer
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Sse.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 3e46a325c..556fe2853 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -24,6 +24,9 @@ class Sse extends Controller {
self::$ob_hash = get_observer_hash();
self::$vnotify = get_pconfig(self::$uid, 'system', 'vnotify');
+ if(! self::$ob_hash)
+ return;
+
$sleep_seconds = 3;
header("Content-Type: text/event-stream");