From 1f2ae094b29aa3fc237919659ced66c6d236d068 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 16 May 2021 19:58:00 +0200 Subject: Clear current query job when it finished --- lib/connection.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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(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 -- cgit v1.2.3