File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.9.12 " ,
3
+ "version" : " 1.9.13 " ,
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 @@ -296,7 +296,9 @@ export class InternalChannel {
296
296
this . currentPicker = picker ;
297
297
const queueCopy = this . pickQueue . slice ( ) ;
298
298
this . pickQueue = [ ] ;
299
- this . callRefTimerUnref ( ) ;
299
+ if ( queueCopy . length > 0 ) {
300
+ this . callRefTimerUnref ( ) ;
301
+ }
300
302
for ( const call of queueCopy ) {
301
303
call . doPick ( ) ;
302
304
}
@@ -349,11 +351,12 @@ export class InternalChannel {
349
351
process . nextTick ( ( ) => {
350
352
const localQueue = this . configSelectionQueue ;
351
353
this . configSelectionQueue = [ ] ;
352
- this . callRefTimerUnref ( ) ;
354
+ if ( localQueue . length > 0 ) {
355
+ this . callRefTimerUnref ( ) ;
356
+ }
353
357
for ( const call of localQueue ) {
354
358
call . getConfig ( ) ;
355
359
}
356
- this . configSelectionQueue = [ ] ;
357
360
} ) ;
358
361
} ,
359
362
status => {
@@ -380,7 +383,9 @@ export class InternalChannel {
380
383
}
381
384
const localQueue = this . configSelectionQueue ;
382
385
this . configSelectionQueue = [ ] ;
383
- this . callRefTimerUnref ( ) ;
386
+ if ( localQueue . length > 0 ) {
387
+ this . callRefTimerUnref ( ) ;
388
+ }
384
389
for ( const call of localQueue ) {
385
390
call . reportResolverError ( status ) ;
386
391
}
You can’t perform that action at this time.
0 commit comments