mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix setting offline on quit.
This commit is contained in:
@@ -3752,7 +3752,7 @@ void MainWidget::updateOnline(bool gotOtherOffline) {
|
||||
if (this != App::main()) return;
|
||||
InvokeQueued(this, [=] { session().checkAutoLock(); });
|
||||
|
||||
bool isOnline = App::wnd()->isActive();
|
||||
bool isOnline = !App::quitting() && App::wnd()->isActive();
|
||||
int updateIn = Global::OnlineUpdatePeriod();
|
||||
if (isOnline) {
|
||||
auto idle = psIdleTime();
|
||||
|
Reference in New Issue
Block a user