From 2c022924cf28066eea501ff317623d3ce730cb3e Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 26 May 2020 15:12:34 -0700 Subject: [PATCH] grpc-js: Properly back off when transitioning through IDLE --- packages/grpc-js/src/subchannel.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/grpc-js/src/subchannel.ts b/packages/grpc-js/src/subchannel.ts index ab7b176c..b540eb21 100644 --- a/packages/grpc-js/src/subchannel.ts +++ b/packages/grpc-js/src/subchannel.ts @@ -507,10 +507,6 @@ export class Subchannel { this.stopKeepalivePings(); break; case ConnectivityState.IDLE: - /* Stopping the backoff timer here is probably redundant because we - * should only transition to the IDLE state as a result of the timer - * ending, but we still want to reset the backoff timeout. */ - this.stopBackoff(); if (this.session) { this.session.close(); }