grpc-js: Properly back off when transitioning through IDLE

This commit is contained in:
Michael Lumish 2020-05-26 15:12:34 -07:00
parent 075a75b015
commit 2c022924cf
1 changed files with 0 additions and 4 deletions

View File

@ -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();
}