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

Tentative fix

This commit is contained in:
Daniil Gentili 2023-07-26 18:16:19 +02:00
parent 3d6186235f
commit 7ccbf3af3b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -455,12 +455,12 @@ final class DataCenterConnection implements JsonSerializable
$this->API->logger->logger('Already connected!', Logger::WARNING);
return;
}
$f = new DeferredFuture;
$this->connectionsPromise = $f->getFuture();
$this->ctx = $ctx->getCtx();
$this->connectMore(1);
$this->restoreBackup();
$f = new DeferredFuture;
$f->complete();
$this->connectionsPromise = $f->getFuture();
if (isset($this->connectionsDeferred)) {
$connectionsDeferred = $this->connectionsDeferred;
$this->connectionsDeferred = null;