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

Improve working with sessions.

This commit is contained in:
John Preston
2019-11-14 20:39:15 +03:00
parent 1e252a6505
commit fe1e627cac
3 changed files with 139 additions and 116 deletions

View File

@@ -378,7 +378,6 @@ public slots:
void connectionWasInitedForDC();
void tryToReceive();
void checkRequestsByTimer();
void onConnectionStateChange(qint32 newState);
void onResetDone();
@@ -388,10 +387,13 @@ public slots:
private:
void createDcData();
void checkRequestsByTimer();
bool rpcErrorOccured(mtpRequestId requestId, const RPCFailHandlerPtr &onFail, const RPCError &err);
not_null<Instance*> _instance;
const not_null<Instance*> _instance;
const ShiftedDcId _shiftedDcId = 0;
std::unique_ptr<Connection> _connection;
bool _killed = false;
@@ -399,7 +401,6 @@ private:
SessionData _data;
ShiftedDcId _shiftedDcId = 0;
std::shared_ptr<Dcenter> _dc;
AuthKeyPtr _dcKeyForCheck;
@@ -408,7 +409,7 @@ private:
bool _ping = false;
QTimer _timeouter;
base::Timer _timeouter;
base::Timer _sender;
};