HTTP fixes
This commit is contained in:
parent
cedc57d4bf
commit
c218517673
@ -185,7 +185,7 @@ trait CallHandler
|
|||||||
} catch (\danog\MadelineProto\NothingInTheSocketException $e) {
|
} catch (\danog\MadelineProto\NothingInTheSocketException $e) {
|
||||||
$last_error = 'Nothing in the socket';
|
$last_error = 'Nothing in the socket';
|
||||||
\danog\MadelineProto\Logger::log('An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...', \danog\MadelineProto\Logger::WARNING);
|
\danog\MadelineProto\Logger::log('An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...', \danog\MadelineProto\Logger::WARNING);
|
||||||
if ($res_count > 3 && $last_recv === $this->datacenter->sockets[$aargs['datacenter']]->last_recv) {
|
if ($last_recv === $this->datacenter->sockets[$aargs['datacenter']]->last_recv) {
|
||||||
$this->close_and_reopen($aargs['datacenter']);
|
$this->close_and_reopen($aargs['datacenter']);
|
||||||
}
|
}
|
||||||
continue; //2;
|
continue; //2;
|
||||||
|
Loading…
Reference in New Issue
Block a user