@grpc/grpc-js
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -351,5 +351,9 @@ "use strict"; | ||
if (this.currentPick !== null) { | ||
this.currentPick.unref(); | ||
this.currentPick.removeConnectivityStateListener(this.pickedSubchannelStateListener); | ||
this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); | ||
/* Unref can cause a state change, which can cause a change in the value | ||
* of this.currentPick, so we hold a local reference to make sure that | ||
* does not impact this function. */ | ||
const currentPick = this.currentPick; | ||
currentPick.unref(); | ||
currentPick.removeConnectivityStateListener(this.pickedSubchannelStateListener); | ||
this.channelControlHelper.removeChannelzChild(currentPick.getChannelzRef()); | ||
} | ||
@@ -356,0 +360,0 @@ } |
{ | ||
"name": "@grpc/grpc-js", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "gRPC Library for Node - pure JS implementation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/", |
@@ -452,7 +452,11 @@ /* | ||
if (this.currentPick !== null) { | ||
this.currentPick.unref(); | ||
this.currentPick.removeConnectivityStateListener( | ||
/* Unref can cause a state change, which can cause a change in the value | ||
* of this.currentPick, so we hold a local reference to make sure that | ||
* does not impact this function. */ | ||
const currentPick = this.currentPick; | ||
currentPick.unref(); | ||
currentPick.removeConnectivityStateListener( | ||
this.pickedSubchannelStateListener | ||
); | ||
this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); | ||
this.channelControlHelper.removeChannelzChild(currentPick.getChannelzRef()); | ||
} | ||
@@ -459,0 +463,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1364369
27643