do not retry on cors

This commit is contained in:
Valere
2026-03-20 09:29:57 +01:00
parent 29720d4376
commit 0a9798f522
+2 -1
View File
@@ -353,7 +353,8 @@ export async function doNetworkOperationWithRetry<T>(
return await operation(); return await operation();
} catch (e) { } catch (e) {
currentRetryCount++; currentRetryCount++;
const backoff = calculateRetryBackoff(e, currentRetryCount, true); const backoff = calculateRetryBackoff(e, currentRetryCount,
false /** Do not retry CORS */);
if (backoff < 0) { if (backoff < 0) {
// Max number of retries reached, or error is not retryable. rethrow the error // Max number of retries reached, or error is not retryable. rethrow the error
throw e; throw e;