[libcalamares] Return reply early if the request is bad
This commit is contained in:
parent
85f0d38698
commit
ededebbc6c
@ -107,6 +107,12 @@ synchronousRun( const std::unique_ptr< QNetworkAccessManager >& nam, const QUrl&
|
|||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
QTimer timer;
|
QTimer timer;
|
||||||
|
|
||||||
|
if ( reply->error() )
|
||||||
|
{
|
||||||
|
reply->deleteLater();
|
||||||
|
return reply;
|
||||||
|
}
|
||||||
|
|
||||||
options.applyToRequest( &request );
|
options.applyToRequest( &request );
|
||||||
if ( options.hasTimeout() )
|
if ( options.hasTimeout() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user