diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-12 18:02:27 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-12 18:02:27 +0900 |
commit | 74caea2669b8f76ca76507bc40321fdcd23dc522 (patch) | |
tree | 00a8e8eb57178cfe8daf70c132b03e336ca75107 /lib | |
parent | 45443dfbd8e800238ec0f0b6d284c144c02ee0d8 (diff) | |
download | libquotient-74caea2669b8f76ca76507bc40321fdcd23dc522.tar.gz libquotient-74caea2669b8f76ca76507bc40321fdcd23dc522.zip |
Minor polish
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 2 | ||||
-rw-r--r-- | lib/jobs/basejob.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 79411dce..1bd2e32e 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -200,7 +200,7 @@ void Connection::resolveServer(const QString& mxid) } else { QUrl baseUrl(getWellKnownJob->data().homeserver.baseUrl); - qCDebug(MAIN) << ".well-known for" << maybeBaseUrl.host() << "is" << baseUrl.authority(); + qCDebug(MAIN) << ".well-known for" << maybeBaseUrl.host() << "is" << baseUrl.toString(); setHomeserver(baseUrl); } diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 6ad8d971..b3cfc527 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -300,7 +300,7 @@ void BaseJob::gotReply() QJsonDocument::fromJson(d->rawResponse).object())); } - if (error() != TooManyRequestsError) + if (status().code != TooManyRequestsError) finishJob(); else { stop(); |