aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-05-15 15:16:05 +0200
committerMario Vavti <mario@mariovavti.com>2021-05-15 15:16:05 +0200
commit2ee1e2af723ef812a6072fc26c175f1ca5819be5 (patch)
tree90cf55939df0a3f711ca5009f9330fcaca76c734 /Zotlabs/Module/Sse.php
parentc3ad21c5486c58ae08aabbbbfbd23afdab15ec0c (diff)
parent635a24dff477548bdcf601874cb1ff2509aef3cc (diff)
downloadvolse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.gz
volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.bz2
volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Sse.php')
-rw-r--r--Zotlabs/Module/Sse.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 8bea65207..6f3df299f 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -108,7 +108,8 @@ class Sse extends Controller {
echo 'data: {}';
echo "\n\n";
- ob_end_flush();
+ if(ob_get_length() > 0)
+ ob_end_flush();
flush();
if(connection_status() != CONNECTION_NORMAL || connection_aborted()) {