Only flush if there is something to flush (#11927)

This commit is contained in:
Jellyfrog
2020-07-13 16:24:31 +02:00
committed by GitHub
parent 514b3efd01
commit 3759a03b0f
+3 -1
View File
@@ -38,7 +38,9 @@ class StreamedOutput extends StreamOutput
echo $message . PHP_EOL;
ob_flush();
if (ob_get_level() > 0) {
ob_flush();
}
flush();
}
}