From ce891e9254ef82ace8993232b50dee4ffa0673f2 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 25 Feb 2024 03:57:55 +0800 Subject: [PATCH] fix: fix logic problem of retry --- src/server/model/monitor/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/model/monitor/runner.ts b/src/server/model/monitor/runner.ts index 6ad685b..93f265e 100644 --- a/src/server/model/monitor/runner.ts +++ b/src/server/model/monitor/runner.ts @@ -59,7 +59,7 @@ export class MonitorRunner { value = -1; } - if (this.retriedNum < maxRetries) { + if (value < 0 && this.retriedNum < maxRetries) { // can be retry this.retriedNum++; } else {