fix: fix logic problem of retry

This commit is contained in:
moonrailgun 2024-02-25 03:57:55 +08:00
parent d0c8bf9f0e
commit ce891e9254

View File

@ -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 {