HTTP fixes

This commit is contained in:
Daniil Gentili 2018-03-04 14:37:45 +01:00
parent cedc57d4bf
commit c218517673

View File

@ -185,7 +185,7 @@ trait CallHandler
} catch (\danog\MadelineProto\NothingInTheSocketException $e) {
$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);
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']);
}
continue; //2;