From 575fe406d8028caa530302ba44f469fcd289172c Mon Sep 17 00:00:00 2001 From: Nadeesha Cabral Date: Mon, 28 Oct 2024 08:16:48 +1100 Subject: [PATCH] fix: Reset failure count after successful poll --- sdk-node/src/service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk-node/src/service.ts b/sdk-node/src/service.ts index db85beb1..b32dcac9 100644 --- a/sdk-node/src/service.ts +++ b/sdk-node/src/service.ts @@ -110,6 +110,7 @@ export class Service { while (this.polling && failureCount < MAX_CONSECUTIVE_POLL_FAILURES) { try { await this.pollIteration(); + failureCount = 0; } catch (e) { log("Failed poll iteration", e); failureCount++;