1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 10:31:13 +01:00

Stop sending init

This commit is contained in:
Daniil Gentili 2023-08-21 09:32:35 +02:00
parent e31b69a2b9
commit 0182a8f96e
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -500,7 +500,9 @@ final class VoIPController
EventLoop::queue(function () use ($endpoint): void {
while ($this->voipState->value <= VoIPState::WAIT_INIT_ACK->value) {
$this->log("Sending PKT_INIT to $endpoint...");
$endpoint->sendInit();
if (!$endpoint->sendInit()) {
return;
}
delay(0.02);
}
});