2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Use base::call_delayed.

This commit is contained in:
John Preston
2019-09-26 13:55:35 +03:00
parent 09a7daf164
commit 30a1bd7ba2
29 changed files with 68 additions and 83 deletions

View File

@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mtproto/auth_key.h"
#include "base/unixtime.h"
#include "base/openssl_help.h"
#include "base/call_delayed.h"
#include "facades.h"
#include <QtCore/QJsonDocument>
@@ -415,7 +416,7 @@ void SpecialConfigRequest::sendNextRequest() {
const auto attempt = _attempts.back();
_attempts.pop_back();
if (!_attempts.empty()) {
App::CallDelayed(kSendNextTimeout, this, [=] {
base::call_delayed(kSendNextTimeout, this, [=] {
sendNextRequest();
});
}
@@ -778,7 +779,7 @@ void DomainResolver::sendNextRequest(const AttemptKey &key) {
list.pop_back();
if (!list.empty()) {
App::CallDelayed(kSendNextTimeout, &attempts.guard, [=] {
base::call_delayed(kSendNextTimeout, &attempts.guard, [=] {
sendNextRequest(key);
});
}