diff options
author | Tobias Fella <fella@posteo.de> | 2021-05-16 19:58:00 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:56:11 +0100 |
commit | 1f2ae094b29aa3fc237919659ced66c6d236d068 (patch) | |
tree | a3acdf07d2436826a72570e1aea516284bd708ca | |
parent | 00b6103ceeed63238cb8c691163ed8489dd72ddb (diff) | |
download | libquotient-1f2ae094b29aa3fc237919659ced66c6d236d068.tar.gz libquotient-1f2ae094b29aa3fc237919659ced66c6d236d068.zip |
Clear current query job when it finished
-rw-r--r-- | lib/connection.cpp | 1 |
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 |