2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

MTP global state moved to MTP::Instance class.

Now there will be ability to start multiple mtproto instances.
This commit is contained in:
John Preston
2017-02-24 20:15:41 +03:00
parent c3b3819d9f
commit dd933cf61c
23 changed files with 1868 additions and 1341 deletions

View File

@@ -124,7 +124,7 @@ void unixtimeSet(int32 serverTime, bool force) {
}
TimeId unixtime() {
TimeId result = myunixtime();
auto result = myunixtime();
QReadLocker locker(&unixtimeLock);
return result + unixtimeDelta;