2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +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

@@ -257,10 +257,14 @@ void Session::refreshOptions() {
}
void Session::reInitConnection() {
_dc->setConnectionInited(false);
setConnectionNotInited();
restart();
}
void Session::setConnectionNotInited() {
_dc->setConnectionInited(false);
}
void Session::stop() {
if (_killed) {
DEBUG_LOG(("Session Error: can't stop a killed session"));