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

Replace InvokeQueued with on_main for has_weak_ptr.

This commit is contained in:
John Preston
2018-06-07 21:04:51 +03:00
parent c63c75018d
commit c2fa149ffd
3 changed files with 13 additions and 27 deletions

View File

@@ -1254,7 +1254,7 @@ MtpChecker::MtpChecker(QPointer<MTP::Instance> instance, bool testing)
void MtpChecker::start() {
if (!_mtp.valid()) {
LOG(("Update Info: MTP is unavailable."));
InvokeQueued(this, [=] { fail(); });
crl::on_main(this, [=] { fail(); });
return;
}
constexpr auto kFeedUsername = "tdhbcfeed";