mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
Fix test dc handshake
This commit is contained in:
parent
a5ce6c5b91
commit
6233580e24
|
@ -1890,16 +1890,16 @@ void ConnectionsManager::setUserId(int64_t userId) {
|
|||
}
|
||||
|
||||
void ConnectionsManager::switchBackend(bool restart) {
|
||||
//scheduleTask([&, restart] {
|
||||
currentDatacenterId = 1;
|
||||
testBackend = !testBackend;
|
||||
datacenters.clear();
|
||||
initDatacenters();
|
||||
saveConfig();
|
||||
if (restart) {
|
||||
exit(1);
|
||||
}
|
||||
//});
|
||||
scheduleTask([&, restart] {
|
||||
currentDatacenterId = 1;
|
||||
testBackend = !testBackend;
|
||||
datacenters.clear();
|
||||
initDatacenters();
|
||||
saveConfig();
|
||||
if (restart) {
|
||||
exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void ConnectionsManager::removeRequestFromGuid(int32_t requestToken) {
|
||||
|
|
|
@ -390,6 +390,8 @@ void Handshake::processHandshakeResponse(TLObject *message, int64_t messageId) {
|
|||
loadCdnConfig(currentDatacenter);
|
||||
} else {
|
||||
if (LOGS_ENABLED) DEBUG_E("account%u dc%u handshake: can't find valid server public key, type = %d", currentDatacenter->instanceNum, currentDatacenter->datacenterId, handshakeType);
|
||||
serverPublicKeys.clear();
|
||||
serverPublicKeysFingerprints.clear();
|
||||
beginHandshake(false);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user