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

Avoid race condition during initialization

This commit is contained in:
Daniil Gentili 2023-08-29 20:00:13 +02:00
parent 7455f29b60
commit 7a290a4f39
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit fb60db620b52ed14588fb0cc6942727b2ff06588
Subproject commit 480552c070099271e1df125732296ad11a58b6b0

@ -1 +1 @@
Subproject commit 613d1949feefd1c8018995901fad6a9916eb8703
Subproject commit ccb9fda5e133d585adb03ba2a87b742988e29fc9

View File

@ -320,6 +320,7 @@ final class VoIPController
if ($this->callState === CallState::ENDED) {
return $this;
}
$this->API->waitForInit();
$this->API->cleanupCall($this->public->callID);
$this->callState = CallState::ENDED;
$this->diskJockey->discard();