Commit 209d06a8 authored by Mario's avatar Mario

better detection for who to send sys notifications (needs addons update)

parent 4a6d050e
Pipeline #184512 passed with stage
in 4 minutes and 33 seconds
......@@ -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;
}
......
......@@ -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'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment