2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Fix connection re-init in case of CONNECTION_NOT_INITED.

This commit is contained in:
John Preston
2022-12-29 11:42:08 +04:00
parent 13ad39dfc2
commit cad6faa790
3 changed files with 7 additions and 1 deletions

View File

@@ -1537,6 +1537,7 @@ bool Instance::Private::onErrorDefault(
const auto session = getSession(qAbs(dcWithShift));
request->needsLayer = true;
session->setConnectionNotInited();
session->sendPrepared(request);
return true;
} else if (type == u"CONNECTION_LANG_CODE_INVALID"_q) {