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();
_bareRequest = 0;
}
var udpatesState = await this.Updates_GetState(); // this call reenables incoming Updates
OnUpdate(udpatesState);
}
else
throw;
@ -955,7 +957,7 @@ namespace WTelegram
if (prevUser != null)
{
// 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);
return prevUser;
}