mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Only flush if there is something to flush (#11927)
This commit is contained in:
@@ -38,7 +38,9 @@ class StreamedOutput extends StreamOutput
|
||||
|
||||
echo $message . PHP_EOL;
|
||||
|
||||
ob_flush();
|
||||
if (ob_get_level() > 0) {
|
||||
ob_flush();
|
||||
}
|
||||
flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user