aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-05-16 19:58:00 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:11 +0100
commit1f2ae094b29aa3fc237919659ced66c6d236d068 (patch)
treea3acdf07d2436826a72570e1aea516284bd708ca /lib
parent00b6103ceeed63238cb8c691163ed8489dd72ddb (diff)
downloadlibquotient-1f2ae094b29aa3fc237919659ced66c6d236d068.tar.gz
libquotient-1f2ae094b29aa3fc237919659ced66c6d236d068.zip
Clear current query job when it finished
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 66590bd8..41dd71f6 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -1848,6 +1848,7 @@ void Connection::Private::loadOutdatedUserDevices()
auto queryKeysJob = q->callApi<QueryKeysJob>(users);
currentQueryKeysJob = queryKeysJob;
connect(queryKeysJob, &BaseJob::success, q, [=](){
+ currentQueryKeysJob = nullptr;
const auto data = queryKeysJob->deviceKeys();
for(const auto &[user, keys] : asKeyValueRange(data)) {
//TODO Check key signature