Reenable incoming Updates after an exception in Reactor

This commit is contained in:
Wizou 2021-10-28 12:31:34 +02:00
parent 668138fd78
commit 36e7d4ddbc

View file

@ -402,6 +402,8 @@ namespace WTelegram
_pendingRequests.Clear(); _pendingRequests.Clear();
_bareRequest = 0; _bareRequest = 0;
} }
var udpatesState = await this.Updates_GetState(); // this call reenables incoming Updates
OnUpdate(udpatesState);
} }
else else
throw; throw;
@ -955,7 +957,7 @@ namespace WTelegram
if (prevUser != null) if (prevUser != null)
{ {
// TODO: implement a more complete Updates gaps handling system? https://core.telegram.org/api/updates // TODO: implement a more complete Updates gaps handling system? https://core.telegram.org/api/updates
var udpatesState = await this.Updates_GetState(); var udpatesState = await this.Updates_GetState(); // this call enables incoming Updates
OnUpdate(udpatesState); OnUpdate(udpatesState);
return prevUser; return prevUser;
} }