1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 23:51:12 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2021-12-07 18:06:55 +01:00
parent 8fd999c6fd
commit 26d67be358
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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;
}