mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
parent
8b3d0c14d0
commit
80b9d4528e
1 changed files with 4 additions and 1 deletions
|
@ -1406,9 +1406,12 @@ request_cross_signing_keys()
|
||||||
body,
|
body,
|
||||||
[request_id = secretRequest.request_id, secretName](mtx::http::RequestErr err) {
|
[request_id = secretRequest.request_id, secretName](mtx::http::RequestErr err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
request_id_to_secret_name.erase(request_id);
|
|
||||||
nhlog::net()->error("Failed to send request for secrect '{}'",
|
nhlog::net()->error("Failed to send request for secrect '{}'",
|
||||||
secretName);
|
secretName);
|
||||||
|
// Cancel request on UI thread
|
||||||
|
QTimer::singleShot(1, cache::client(), [request_id]() {
|
||||||
|
request_id_to_secret_name.erase(request_id);
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue