aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-12 21:15:01 +0000
committerMario <mario@mariovavti.com>2019-11-12 21:15:01 +0000
commit6e36820b1bbc35bc3d26ff4eca2b63a386b30462 (patch)
treeb44855dfd9b9618c66183e9ffcb70cb5cefff577 /Zotlabs/Module/Sse.php
parent209d06a8f795282ddf370dff8228d2385004d05a (diff)
downloadvolse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.tar.gz
volse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.tar.bz2
volse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.zip
sse: do not delete xconfig - reset it
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;
}