1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00

Default to a more sensible timeout

This commit is contained in:
Daniil Gentili 2022-04-29 21:22:55 +02:00
parent d440d961bf
commit 3a94870db7
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -78,7 +78,7 @@ class UpdateLoop extends ResumableSignalLoop
}
}
$this->state = $state = $this->channelId === self::GENERIC ? yield from $API->loadUpdateState() : $API->loadChannelState($this->channelId);
$timeout = 1;
$timeout = 10;
$first = true;
while (true) {
while (!$API->hasAllAuth()) {