mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-02-23 16:05:22 +01:00
Manager: workaround Updates_GetState returning wrong QTS
This commit is contained in:
parent
75f5832ef6
commit
6354d0e8b7
|
|
@ -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…
Reference in a new issue