mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-13 21:59:30 +00:00
do not retry on cors
This commit is contained in:
+2
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user