diff options
author | Mario <mario@mariovavti.com> | 2019-11-12 21:15:01 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-12 21:15:01 +0000 |
commit | 6e36820b1bbc35bc3d26ff4eca2b63a386b30462 (patch) | |
tree | b44855dfd9b9618c66183e9ffcb70cb5cefff577 /Zotlabs/Module/Sse.php | |
parent | 209d06a8f795282ddf370dff8228d2385004d05a (diff) | |
download | volse-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.php | 5 |
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; } |