2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix contract violation in shutdown with webview.

This commit is contained in:
John Preston
2021-04-13 16:52:40 +04:00
parent e52f947f98
commit 34c5ce16d0
4 changed files with 16 additions and 1 deletions

View File

@@ -112,6 +112,10 @@ bool CheckoutProcess::TakePaymentStarted(
return true;
}
void CheckoutProcess::ClearAll() {
Processes.clear();
}
void CheckoutProcess::RegisterPaymentStart(
not_null<CheckoutProcess*> process) {
const auto i = Processes.find(process->_session);