mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
[libcalamares] Return reply early if the request is bad
This commit is contained in:
parent
85f0d38698
commit
ededebbc6c
1 changed files with 6 additions and 0 deletions
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue