mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 23:51:12 +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) {
|
if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' && !$inited) {
|
||||||
$needs_restart = true;
|
$needs_restart = true;
|
||||||
try {
|
try {
|
||||||
\set_time_limit(-1);
|
if (\function_exists('set_time_limit')) {
|
||||||
|
\set_time_limit(-1);
|
||||||
|
}
|
||||||
} catch (\danog\MadelineProto\Exception $e) {
|
} catch (\danog\MadelineProto\Exception $e) {
|
||||||
$needs_restart = true;
|
$needs_restart = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user