mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 10:31:13 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
588aea5c8e
commit
caaffb60f1
@ -145,7 +145,7 @@ trait CallHandler
|
||||
$only_updates = false;
|
||||
$response_tries = $this->settings['max_tries']['response'] + 1;
|
||||
if ($last_recv) {
|
||||
$response_tries += (int) floor((time() - $last_recv)/10);
|
||||
$response_tries += (int) floor((time() - $last_recv) / 10);
|
||||
}
|
||||
while ($server_answer === null && $res_count++ < $response_tries) {
|
||||
// Loop until we get a response, loop for a max of $this->settings['max_tries']['response'] times
|
||||
|
@ -357,7 +357,7 @@ trait UpdateHandler
|
||||
|
||||
try {
|
||||
$data = $this->method_call('updates.getState', [], ['datacenter' => $this->settings['connection_settings']['default_dc']]);
|
||||
$this->get_cdn_config( $this->settings['connection_settings']['default_dc']);
|
||||
$this->get_cdn_config($this->settings['connection_settings']['default_dc']);
|
||||
} finally {
|
||||
$this->updates_state['sync_loading'] = $last;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user