mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Reenable incoming Updates after an exception in Reactor
This commit is contained in:
parent
668138fd78
commit
36e7d4ddbc
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue