aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 20:16:59 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 20:16:59 +0100
commit90d41b697af39253483d9bcca4e57b11d2197112 (patch)
treeca715e5f115658711239e0fce6286b292ff221b7 /lib/connection.cpp
parent9c8966b094a838fb72a46c1068d9d6f88c3795c2 (diff)
downloadlibquotient-90d41b697af39253483d9bcca4e57b11d2197112.tar.gz
libquotient-90d41b697af39253483d9bcca4e57b11d2197112.zip
Prefer connecting to BaseJob::result(), not finished()
...because finished() includes abandoning and should only be relevant when lifecycle issues are involved.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 9dad3c22..a12b1fb5 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -1543,7 +1543,7 @@ void Connection::setHomeserver(const QUrl& url)
// Whenever a homeserver is updated, retrieve available login flows from it
d->loginFlowsJob = callApi<GetLoginFlowsJob>(BackgroundRequest);
- connect(d->loginFlowsJob, &BaseJob::finished, this, [this] {
+ connect(d->loginFlowsJob, &BaseJob::result, this, [this] {
if (d->loginFlowsJob->status().good())
d->loginFlows = d->loginFlowsJob->flows();
else