Manager: workaround Updates_GetState returning wrong QTS

This commit is contained in:
Wizou 2024-10-18 01:15:45 +02:00
parent 75f5832ef6
commit 6354d0e8b7

View file

@ -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
{