2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

sending ping_delay_disconnect instead of getDifference by no-updates timeouts

This commit is contained in:
John Preston
2015-04-16 17:59:42 +03:00
parent a356a4dc06
commit c9626c140c
9 changed files with 54 additions and 13 deletions

View File

@@ -341,6 +341,7 @@ public slots:
void restart(bool maybeBadKey = false);
void onPingSender();
void onPingSendForce();
void onBadConnection();
void onOldConnection();
void onSentSome(uint64 size);
@@ -416,7 +417,7 @@ private:
void requestsAcked(const QVector<MTPlong> &ids, bool byResponse = false);
mtpPingId _pingId, _pingIdToSend;
uint64 _pingSent;
uint64 _pingSendAt;
mtpMsgId _pingMsgId;
SingleTimer _pingSender;