mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-24 15:34:20 +00:00
Fix update request timeout.
This commit is contained in:
parent
266102df2f
commit
688275ea81
@ -270,8 +270,9 @@ void ApiWrap::requestTermsUpdate() {
|
||||
_termsUpdateRequestId = 0;
|
||||
|
||||
const auto requestNext = [&](auto &&data) {
|
||||
const auto timeout = (data.vexpires.v - unixtime());
|
||||
_termsUpdateSendAt = getms(true) + snap(
|
||||
TimeMs(data.vexpires.v - unixtime()),
|
||||
timeout * TimeMs(1000),
|
||||
kTermsUpdateTimeoutMin,
|
||||
kTermsUpdateTimeoutMax);
|
||||
requestTermsUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user