mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix stack overflow in passcode lock check.
A regression was introduced in e209737b1a
.
We call MainWindow::doWeReadMentions() in the history paintEvent,
that calls Auth().checkAutoLock() and may start passcode locking.
Passcode locking starts animation and grabs the window content,
calling history paintEvent() which leads to deadlock.
Now we call Auth().checkAutoLock() asyncronously.
This commit is contained in:
parent
df64c972d8
commit
76489a7885
1 changed files with 1 additions and 1 deletions
|
@ -4406,7 +4406,7 @@ MainWidget::~MainWidget() {
|
|||
|
||||
void MainWidget::updateOnline(bool gotOtherOffline) {
|
||||
if (this != App::main()) return;
|
||||
Auth().checkAutoLock();
|
||||
InvokeQueued(this, [] { Auth().checkAutoLock(); });
|
||||
|
||||
bool isOnline = App::wnd()->isActive();
|
||||
int updateIn = Global::OnlineUpdatePeriod();
|
||||
|
|
Loading…
Add table
Reference in a new issue