Skip to content

Commit afff1b8

Browse files
committed
UpdateManager: Fix repeated RecoverGaps
1 parent 47601cc commit afff1b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/UpdateManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private async Task RecoverGaps(Task _) // https://corefork.telegram.org/api/upda
244244
var (update, updates, own, stamp) = _pending[0];
245245
if (stamp > now)
246246
{
247-
_recoveringGaps = Task.Delay(stamp - now).ContinueWith(RecoverGaps, _scheduler);
247+
_recoveringGaps = Task.Delay((int)Math.Ceiling((stamp - now).TotalMilliseconds)).ContinueWith(RecoverGaps, _scheduler);
248248
return;
249249
}
250250
var (mbox_id, pts, pts_count) = update.GetMBox();

0 commit comments

Comments
 (0)