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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user