aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Sse.php2
-rw-r--r--Zotlabs/Module/Sse_bs.php3
2 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 97fee5f49..6f7e9543a 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -84,6 +84,7 @@ class Sse extends Controller {
echo "\n\n";
del_xconfig(self::$ob_hash, 'sse', 'notifications');
+ set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert());
unset($result);
}
@@ -96,6 +97,7 @@ class Sse extends Controller {
flush();
if(connection_status() != CONNECTION_NORMAL || connection_aborted()) {
+ del_xconfig(self::$ob_hash, 'sse', 'timestamp');
break;
}
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index 672a6c5ef..c591a00bf 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -27,6 +27,9 @@ class Sse_bs extends Controller {
self::$offset = 0;
self::$xchans = '';
+ if(self::$ob_hash)
+ set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert());
+
if(!empty($_GET['nquery']) && $_GET['nquery'] !== '%') {
$nquery = $_GET['nquery'];