MusicBrainzClient fix: Don't try to read reply on connection timeout

that previously resulted in an IO error
This commit is contained in:
Lukas Prediger 2021-09-01 22:21:43 +03:00
parent c58335c6c9
commit 2a0e1f12e5
No known key found for this signature in database
GPG Key ID: DF7C5DA2E98A3428
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ void MusicBrainzClient::DiscIdRequestFinished(const QString& discid,
<< "Error:"
<< reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt()
<< "http status code received";
qLog(Error) << reply->readAll();
if (reply->isOpen()) qLog(Error) << reply->readAll();
emit Finished(artist, album, ret);
return;
}