Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-12-23 14:33:37 +00:00 committed by StyleCI Bot
parent 59473ebb31
commit 7b2798ddd9

View File

@ -704,7 +704,9 @@ class MTProto
$socket->authorized = true;
break;
} catch (\danog\MadelineProto\RPCErrorException $e) {
if ($e->rpc === 'DC_ID_INVALID') break;
if ($e->rpc === 'DC_ID_INVALID') {
break;
}
\danog\MadelineProto\Logger::log(['Failure while syncing authorization from DC '.$authorized_dc_id.' to DC '.$id.': '.$e->getMessage()], \danog\MadelineProto\Logger::ERROR);
} // Turns out this DC isn't authorized after all
}