Skip to content

Commit

Permalink
[o2] Avoid a misleading console error output
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 531f366 commit 87f5c0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion external/o2/src/o2.cpp
Expand Up @@ -432,7 +432,6 @@ void O2::refresh() {

void O2::onRefreshFinished() {
QNetworkReply *refreshReply = qobject_cast<QNetworkReply *>(sender());
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
if (refreshReply->error() == QNetworkReply::NoError) {
QByteArray reply = refreshReply->readAll();
QVariantMap tokens = parseTokenResponse(reply);
Expand All @@ -445,6 +444,10 @@ void O2::onRefreshFinished() {
Q_EMIT refreshFinished(QNetworkReply::NoError);
qDebug() << " New token expires in" << expires() << "seconds";
}
else
{
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
}
refreshReply->deleteLater();
}

Expand Down

0 comments on commit 87f5c0c

Please sign in to comment.