porcodio
This commit is contained in:
parent
8b3744f1f5
commit
715ffb55f5
@ -134,7 +134,7 @@ trait CallHandler
|
|||||||
if ($error === -404) {
|
if ($error === -404) {
|
||||||
if ($this->datacenter->sockets[$aargs['datacenter']]->temp_auth_key !== null) {
|
if ($this->datacenter->sockets[$aargs['datacenter']]->temp_auth_key !== null) {
|
||||||
\danog\MadelineProto\Logger::log(['WARNING: Resetting auth key...'], \danog\MadelineProto\Logger::WARNING);
|
\danog\MadelineProto\Logger::log(['WARNING: Resetting auth key...'], \danog\MadelineProto\Logger::WARNING);
|
||||||
$this->datacenter->sockets[$aargs['datacenter']]->auth_key = null;
|
$this->datacenter->sockets[$aargs['datacenter']]->temp_auth_key = null;
|
||||||
$this->init_authorization();
|
$this->init_authorization();
|
||||||
|
|
||||||
throw new \danog\MadelineProto\Exception('I had to recreate the temporary authorization key');
|
throw new \danog\MadelineProto\Exception('I had to recreate the temporary authorization key');
|
||||||
|
Loading…
Reference in New Issue
Block a user