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

Show bad proxy configuration error.

This commit is contained in:
John Preston
2018-05-24 16:40:19 +03:00
parent 5e7642b42a
commit 37bf9ffcff
6 changed files with 34 additions and 0 deletions

View File

@@ -2983,6 +2983,11 @@ void ConnectionPrivate::onError(
qint32 errorCode) {
if (errorCode == -429) {
LOG(("Protocol Error: -429 flood code returned!"));
} else if (errorCode == -444) {
LOG(("Protocol Error: -444 bad dc_id code returned!"));
InvokeQueued(_instance, [instance = _instance] {
instance->badConfigurationError();
});
}
removeTestConnection(connection);