File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.9.7 " ,
3
+ "version" : " 1.9.8 " ,
4
4
"description" : " gRPC Library for Node - pure JS implementation" ,
5
5
"homepage" : " https://grpc.io/" ,
6
6
"repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ export class InternalChannel {
554
554
}
555
555
556
556
private maybeStartIdleTimer ( ) {
557
- if ( this . callCount === 0 ) {
557
+ if ( this . connectivityState !== ConnectivityState . SHUTDOWN && this . callCount === 0 ) {
558
558
this . idleTimer = setTimeout ( ( ) => {
559
559
this . trace (
560
560
'Idle timer triggered after ' +
@@ -706,6 +706,9 @@ export class InternalChannel {
706
706
this . resolvingLoadBalancer . destroy ( ) ;
707
707
this . updateState ( ConnectivityState . SHUTDOWN ) ;
708
708
clearInterval ( this . callRefTimer ) ;
709
+ if ( this . idleTimer ) {
710
+ clearTimeout ( this . idleTimer ) ;
711
+ }
709
712
if ( this . channelzEnabled ) {
710
713
unregisterChannelzRef ( this . channelzRef ) ;
711
714
}
You can’t perform that action at this time.
0 commit comments