[libcalamares] Return reply early if the request is bad

This commit is contained in:
Adriaan de Groot 2019-08-24 15:23:07 +02:00
parent 85f0d38698
commit ededebbc6c

View File

@ -107,6 +107,12 @@ synchronousRun( const std::unique_ptr< QNetworkAccessManager >& nam, const QUrl&
QEventLoop loop;
QTimer timer;
if ( reply->error() )
{
reply->deleteLater();
return reply;
}
options.applyToRequest( &request );
if ( options.hasTimeout() )
{