From 7c02b6036f66cf87eb0b42b6dbc7397144a449bf Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 17 Mar 2025 15:28:09 +0100 Subject: [PATCH] cleanup rescheduling --- LeStorage/ApiCallCollection.swift | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/LeStorage/ApiCallCollection.swift b/LeStorage/ApiCallCollection.swift index 64bd32f..e6f90c3 100644 --- a/LeStorage/ApiCallCollection.swift +++ b/LeStorage/ApiCallCollection.swift @@ -154,11 +154,14 @@ actor ApiCallCollection: SomeCallCollection { } func resumeApiCalls() { - if self._schedulingTask != nil && self._attemptLoops > 2 { - self._schedulingTask?.cancel() - self._attemptLoops = -1 - self.rescheduleApiCallsIfNecessary() - } + self._attemptLoops = -1 + self.rescheduleApiCallsIfNecessary() + +// if self._schedulingTask != nil && self._attemptLoops > 2 { +// self._schedulingTask?.cancel() +// self._attemptLoops = -1 +// self.rescheduleApiCallsIfNecessary() +// } } func rescheduleImmediately() {