1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:18:57 +01:00

Small fix

This commit is contained in:
Daniil Gentili 2023-06-19 10:23:43 +02:00
parent 4d1f33a551
commit 8097b01190
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -315,6 +315,7 @@ trait Login
if ($this->authorized === MTProto::LOGGED_IN) {
throw new Exception(Lang::$current_lang['already_loggedIn']);
}
$this->authorized_dc = $this->datacenter->currentDatacenter;
$this->qrLoginDeferred?->cancel();
$this->qrLoginDeferred = null;
$this->authorization = $authorization;