Skip to content

Commit a1a9797

Browse files
committed
Fix transport service retry logic condition
Modify the retry mechanism to stop when remaining tries is less than or equal to zero, improving the robustness of the retry handling.
1 parent 777f465 commit a1a9797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/performance/src/services/transport_service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export function resetTransportService(): void {
7272

7373
function processQueue(timeOffset: number): void {
7474
setTimeout(() => {
75-
// If there is no remainingTries left, stop retrying.
76-
if (remainingTries === 0) {
75+
// If there is no remaining Tries left, stop retrying.
76+
if (remainingTries <= 0) {
7777
return;
7878
}
7979

0 commit comments

Comments
 (0)