2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix complicated crash in async base::Timer destroying.

This commit is contained in:
John Preston
2025-03-28 23:51:59 +05:00
parent 4eaf03b922
commit a300a25419
3 changed files with 46 additions and 33 deletions

View File

@@ -2691,14 +2691,6 @@ bool GroupCall::tryCreateController() {
}
});
};
auto e2eEncryptDecrypt = Fn<std::vector<uint8_t>(
const std::vector<uint8_t>&,
bool)>();
if (_e2e) {
e2eEncryptDecrypt = [e2e = _e2e](const std::vector<uint8_t> &data, bool encrypt) {
return encrypt ? e2e->encrypt(data) : e2e->decrypt(data);
};
}
tgcalls::GroupInstanceDescriptor descriptor = {
.threads = tgcalls::StaticThreads::getThreads(),
@@ -2785,7 +2777,7 @@ bool GroupCall::tryCreateController() {
});
return result;
},
.e2eEncryptDecrypt = e2eEncryptDecrypt,
.e2eEncryptDecrypt = _e2e ? _e2e->callbackEncryptDecrypt() : nullptr,
};
if (Logs::DebugEnabled()) {
auto callLogFolder = cWorkingDir() + u"DebugLogs"_q;