Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
8dfd1b21ee
@ -35,7 +35,11 @@ class DataCenter extends \Volatile
|
|||||||
$this->dclist = $dclist;
|
$this->dclist = $dclist;
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
foreach ($this->sockets as $key => $socket) {
|
foreach ($this->sockets as $key => $socket) {
|
||||||
if ($socket instanceof Connection) $socket->close_and_reopen(); else unset($this->sockets[$key]);
|
if ($socket instanceof Connection) {
|
||||||
|
$socket->close_and_reopen();
|
||||||
|
} else {
|
||||||
|
unset($this->sockets[$key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +247,9 @@ class MTProto extends \Volatile
|
|||||||
$this->should_serialize = true;
|
$this->should_serialize = true;
|
||||||
}
|
}
|
||||||
} catch (RPCErrorException $e) {
|
} catch (RPCErrorException $e) {
|
||||||
if ($e->rpc !== "BOT_METHOD_INVALID") throw $e;
|
if ($e->rpc !== 'BOT_METHOD_INVALID') {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->get_config([], ['datacenter' => $this->datacenter->curdc]);
|
$this->get_config([], ['datacenter' => $this->datacenter->curdc]);
|
||||||
|
Loading…
Reference in New Issue
Block a user