2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix setting offline on quit.

This commit is contained in:
John Preston
2019-02-01 12:23:37 +03:00
parent 769923c6cc
commit c66b2b2291
2 changed files with 2 additions and 2 deletions

View File

@@ -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();