aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connection.cpp2
-rw-r--r--lib/jobs/basejob.cpp2
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();