bugfix
This commit is contained in:
parent
b3b351cdb1
commit
6280123828
|
@ -454,6 +454,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||||
|
|
||||||
public function sync_authorization($authorized_dc)
|
public function sync_authorization($authorized_dc)
|
||||||
{
|
{
|
||||||
|
$this->getting_state = true;
|
||||||
foreach ($this->datacenter->sockets as $new_dc => $socket) {
|
foreach ($this->datacenter->sockets as $new_dc => $socket) {
|
||||||
if (($int_dc = preg_replace('|/D+|', '', $new_dc)) == $authorized_dc) {
|
if (($int_dc = preg_replace('|/D+|', '', $new_dc)) == $authorized_dc) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -470,6 +471,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||||
$this->method_call('auth.logOut', [], ['datacenter' => $new_dc]);
|
$this->method_call('auth.logOut', [], ['datacenter' => $new_dc]);
|
||||||
$this->method_call('auth.importAuthorization', $exported_authorization, ['datacenter' => $new_dc]);
|
$this->method_call('auth.importAuthorization', $exported_authorization, ['datacenter' => $new_dc]);
|
||||||
}
|
}
|
||||||
|
$this->getting_state = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function write_client_info($method, $arguments = [], $options = [])
|
public function write_client_info($method, $arguments = [], $options = [])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user