Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
ce9f258924
|
@ -607,7 +607,7 @@ class MTProto extends \Volatile
|
||||||
public function reset_session($de = true, $auth_key = false)
|
public function reset_session($de = true, $auth_key = false)
|
||||||
{
|
{
|
||||||
if (!is_object($this->datacenter)) {
|
if (!is_object($this->datacenter)) {
|
||||||
throw new Exception("The session is corrupted!");
|
throw new Exception('The session is corrupted!');
|
||||||
}
|
}
|
||||||
foreach ($this->datacenter->sockets as $id => $socket) {
|
foreach ($this->datacenter->sockets as $id => $socket) {
|
||||||
if ($de) {
|
if ($de) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user