2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Remove checked key property.

This commit is contained in:
John Preston
2019-11-15 09:43:44 +03:00
parent fe1e627cac
commit f37ab6e38e
2 changed files with 0 additions and 30 deletions

View File

@@ -1075,22 +1075,6 @@ void ConnectionPrivate::restart() {
_waitForReceivedTimer.cancel();
_waitForConnectedTimer.cancel();
auto key = _sessionData->getKey();
if (key) {
if (!_sessionData->isCheckedKey()) {
// No destroying in case of an error.
//
//if (mayBeBadKey) {
// clearMessages();
// _keyId = kRecreateKeyId;
// retryTimeout = 1; // no ddos please
// LOG(("MTP Info: key may be bad and was not checked - but won't be destroyed, no log outs because of bad server right now..."));
//}
} else {
_sessionData->setCheckedKey(false);
}
}
lockFinished.unlock();
doDisconnect();
@@ -1476,10 +1460,6 @@ void ConnectionPrivate::handleReceived() {
}
_retryTimeout = 1; // reset restart() timer
if (!_sessionData->isCheckedKey()) {
DEBUG_LOG(("MTP Info: marked auth key as checked"));
_sessionData->setCheckedKey(true);
}
_startedConnectingAt = crl::time(0);
if (!wasConnected) {