summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-25 15:39:49 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-25 15:39:49 +0200
commit80b9d4528ebc184dc6ff657c858b69cb88245934 (patch)
tree39815c4d49e85aeda5fc035b2cc2ca5878ff2941 /src
parentProperly verify OTK signature (diff)
downloadnheko-80b9d4528ebc184dc6ff657c858b69cb88245934.tar.xz
Remove SSSS requests on the UI thread
might fix #656
Diffstat (limited to 'src')
-rw-r--r--src/Olm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp

index 338a3925..81121443 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -1406,9 +1406,12 @@ request_cross_signing_keys() body, [request_id = secretRequest.request_id, secretName](mtx::http::RequestErr err) { if (err) { - request_id_to_secret_name.erase(request_id); nhlog::net()->error("Failed to send request for secrect '{}'", secretName); + // Cancel request on UI thread + QTimer::singleShot(1, cache::client(), [request_id]() { + request_id_to_secret_name.erase(request_id); + }); return; } });