Check if headers were sent
This commit is contained in:
parent
aed36aac8d
commit
69505c3e8b
@ -127,7 +127,7 @@ trait Loop
|
||||
}
|
||||
public function closeConnection($message = 'OK!')
|
||||
{
|
||||
if (php_sapi_name() === 'cli' || isset($GLOBALS['exited'])) {
|
||||
if (php_sapi_name() === 'cli' || isset($GLOBALS['exited']) || headers_sent()) {
|
||||
return;
|
||||
}
|
||||
@ob_end_clean();
|
||||
|
Loading…
Reference in New Issue
Block a user