From 36e7d4ddbc1f5aa0ed6f96c7f9535320937c4664 Mon Sep 17 00:00:00 2001 From: Wizou Date: Thu, 28 Oct 2021 12:31:34 +0200 Subject: [PATCH] Reenable incoming Updates after an exception in Reactor --- src/Client.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client.cs b/src/Client.cs index c947fda..5bddcd7 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -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; }