Skip to content

Commit e6099d7

Browse files
committed
grpc-js: Unref backoff timer in subchannel
1 parent 0ba73ea commit e6099d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/grpc-js/src/subchannel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export class Subchannel {
120120
this.backoffTimeout = new BackoffTimeout(() => {
121121
this.handleBackoffTimer();
122122
}, backoffOptions);
123+
this.backoffTimeout.unref();
123124
this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
124125

125126
this.keepaliveTime = options['grpc.keepalive_time_ms'] ?? -1;

0 commit comments

Comments
 (0)