aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-10 08:40:51 +0000
committerMario <mario@mariovavti.com>2024-07-10 08:40:51 +0000
commitd2b06995c7bf14f0ba972099f6bfcd264d4ed0af (patch)
treeb49b376f0d19450402fe10ec9899e5e7fa6010f1 /Zotlabs/Module/Sse.php
parent5cbae0fb81078a60c9fa507be9c725856d7ecb29 (diff)
downloadvolse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.tar.gz
volse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.tar.bz2
volse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.zip
more work on making sure system notifications appear on page reload
Diffstat (limited to 'Zotlabs/Module/Sse.php')
-rw-r--r--Zotlabs/Module/Sse.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 41ff24352..ae8860cd2 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -138,6 +138,7 @@ class Sse extends Controller {
flush();
XConfig::Set(self::$ob_hash, 'sse', 'timestamp', NULL_DATE);
+ XConfig::Set(self::$ob_hash, 'sse', 'notifications', []);
exit;
}
@@ -145,12 +146,12 @@ class Sse extends Controller {
ob_flush();
flush();
+ usleep($sleep);
+
if ($result) {
XConfig::Set(self::$ob_hash, 'sse', 'notifications', []);
}
- usleep($sleep);
-
$i++;
}