2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Don't always restart connection on config change.

This commit is contained in:
John Preston
2019-11-27 13:41:17 +03:00
parent e6c86b19db
commit 06f5f7f7d9
7 changed files with 50 additions and 36 deletions

View File

@@ -860,8 +860,6 @@ void Instance::Private::configLoadDone(const MTPConfig &result) {
_configExpiresAt = crl::now()
+ (data.vexpires().v - base::unixtime::now()) * crl::time(1000);
requestConfigIfExpired();
emit _instance->configLoaded();
}
bool Instance::Private::configLoadFail(const RPCError &error) {