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

Small bugfix

This commit is contained in:
Daniil Gentili 2017-12-28 13:26:22 +01:00
parent 27eb6c1a29
commit cf66aec891
No known key found for this signature in database
GPG Key ID: 259900308520B573

View File

@ -704,6 +704,7 @@ class MTProto
public function sync_authorization($id)
{
if (!isset($this->datacenter->sockets[$id])) return false;
$socket = $this->datacenter->sockets[$id];
if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) {
foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) {