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++;