diff options
Diffstat (limited to 'Zotlabs')
-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 41ff24352..ae8860cd2 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -138,6 +138,7 @@ class Sse extends Controller { flush(); XConfig::Set(self::$ob_hash, 'sse', 'timestamp', NULL_DATE); + XConfig::Set(self::$ob_hash, 'sse', 'notifications', []); exit; } @@ -145,12 +146,12 @@ class Sse extends Controller { ob_flush(); flush(); + usleep($sleep); + if ($result) { XConfig::Set(self::$ob_hash, 'sse', 'notifications', []); } - usleep($sleep); - $i++; } |