2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Make all owned MTPD types immutable.

Remove custom refcounting in mtpData, use std::shared_ptr instead.
This commit is contained in:
John Preston
2017-03-09 21:13:55 +03:00
parent 839bf313cf
commit 3b373e236e
9 changed files with 7191 additions and 9237 deletions

View File

@@ -262,7 +262,7 @@ DcId Instance::Private::mainDcId() const {
}
void Instance::Private::configLoadRequest() {
if (_configLoader) {
if (_configLoader || true) {
return;
}
_configLoader = std::make_unique<internal::ConfigLoader>(_instance, rpcDone([this](const MTPConfig &result) {