From 3759a03b0f66093f44909acbea6267d86f2fd2a2 Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Mon, 13 Jul 2020 16:24:31 +0200 Subject: [PATCH] Only flush if there is something to flush (#11927) --- app/StreamedOutput.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/StreamedOutput.php b/app/StreamedOutput.php index ddfafb7319..e589f0b3cc 100644 --- a/app/StreamedOutput.php +++ b/app/StreamedOutput.php @@ -38,7 +38,9 @@ class StreamedOutput extends StreamOutput echo $message . PHP_EOL; - ob_flush(); + if (ob_get_level() > 0) { + ob_flush(); + } flush(); } }