mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 06:53:47 +00:00
Manager: workaround Updates_GetState returning wrong QTS
This commit is contained in:
parent
75f5832ef6
commit
6354d0e8b7
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,8 @@ namespace WTelegram
|
|||
|
||||
private async Task ResyncState(Updates_State state = null)
|
||||
{
|
||||
state ??= new() { qts = int.MaxValue };
|
||||
if (state != null) state.qts = 0; // for some reason Updates_GetState returns an invalid qts, so better consider we have no qts.
|
||||
else state = new() { qts = int.MaxValue };
|
||||
await _sem.WaitAsync();
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue