aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse.php
diff options
context:
space:
mode:
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 6f7e9543a..3e46a325c 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -83,7 +83,7 @@ class Sse extends Controller {
echo 'data: ' . json_encode($result);
echo "\n\n";
- del_xconfig(self::$ob_hash, 'sse', 'notifications');
+ set_xconfig(self::$ob_hash, 'sse', 'notifications', []);
set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert());
unset($result);
}
@@ -97,7 +97,8 @@ class Sse extends Controller {
flush();
if(connection_status() != CONNECTION_NORMAL || connection_aborted()) {
- del_xconfig(self::$ob_hash, 'sse', 'timestamp');
+ //TODO: this does not seem to be triggered
+ set_xconfig(self::$ob_hash, 'sse', 'timestamp', NULL_DATE);
break;
}