mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in stories.
This commit is contained in:
parent
8596b0309e
commit
1bf50d60d8
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ void Stories::scheduleExpireTimer() {
|
||||||
const auto nearest = _expiring.front().first;
|
const auto nearest = _expiring.front().first;
|
||||||
const auto now = base::unixtime::now();
|
const auto now = base::unixtime::now();
|
||||||
const auto delay = (nearest > now)
|
const auto delay = (nearest > now)
|
||||||
? (nearest - now)
|
? std::min(nearest - now, 86'400)
|
||||||
: 0;
|
: 0;
|
||||||
_expireTimer.callOnce(delay * crl::time(1000));
|
_expireTimer.callOnce(delay * crl::time(1000));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue