mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 11:18:59 +01:00
Small bugfix
This commit is contained in:
parent
27eb6c1a29
commit
cf66aec891
@ -704,6 +704,7 @@ class MTProto
|
|||||||
|
|
||||||
public function sync_authorization($id)
|
public function sync_authorization($id)
|
||||||
{
|
{
|
||||||
|
if (!isset($this->datacenter->sockets[$id])) return false;
|
||||||
$socket = $this->datacenter->sockets[$id];
|
$socket = $this->datacenter->sockets[$id];
|
||||||
if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) {
|
if ($this->authorized === self::LOGGED_IN && $socket->authorized === false) {
|
||||||
foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) {
|
foreach ($this->datacenter->sockets as $authorized_dc_id => $authorized_socket) {
|
||||||
|
Loading…
Reference in New Issue
Block a user