Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-16 16:02:54 +00:00 committed by StyleCI Bot
parent 9c9b7b3c7d
commit 494fdcfdd4

View File

@ -48,7 +48,9 @@ trait CallHandler
$this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'] = [];
}
} catch (\danog\MadelineProto\Exception $e) {
if ($e->getMessage() == 'I had to recreate the temporary authorization key') continue 2;
if ($e->getMessage() == 'I had to recreate the temporary authorization key') {
continue 2;
}
\danog\MadelineProto\Logger::log('An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...');
continue;
}