mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 00:11:20 +01:00
Small fix
This commit is contained in:
parent
8fd999c6fd
commit
26d67be358
@ -51,7 +51,9 @@ trait Loop
|
||||
if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' && !$inited) {
|
||||
$needs_restart = true;
|
||||
try {
|
||||
\set_time_limit(-1);
|
||||
if (\function_exists('set_time_limit')) {
|
||||
\set_time_limit(-1);
|
||||
}
|
||||
} catch (\danog\MadelineProto\Exception $e) {
|
||||
$needs_restart = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user