File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @grpc/grpc-js" ,
3- "version" : " 1.8.6 " ,
3+ "version" : " 1.8.7 " ,
44 "description" : " gRPC Library for Node - pure JS implementation" ,
55 "homepage" : " https://grpc.io/" ,
66 "repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -354,16 +354,20 @@ class Http2Transport implements Transport {
354354
355355 private removeActiveCall ( call : Http2SubchannelCall ) {
356356 this . activeCalls . delete ( call ) ;
357- if ( this . activeCalls . size === 0 && ! this . keepaliveWithoutCalls ) {
357+ if ( this . activeCalls . size === 0 ) {
358358 this . session . unref ( ) ;
359- this . stopKeepalivePings ( ) ;
359+ if ( ! this . keepaliveWithoutCalls ) {
360+ this . stopKeepalivePings ( ) ;
361+ }
360362 }
361363 }
362364
363365 private addActiveCall ( call : Http2SubchannelCall ) {
364- if ( this . activeCalls . size === 0 && ! this . keepaliveWithoutCalls ) {
366+ if ( this . activeCalls . size === 0 ) {
365367 this . session . ref ( ) ;
366- this . startKeepalivePings ( ) ;
368+ if ( ! this . keepaliveWithoutCalls ) {
369+ this . startKeepalivePings ( ) ;
370+ }
367371 }
368372 this . activeCalls . add ( call ) ;
369373 }
You can’t perform that action at this time.
0 commit comments