We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dd4aa commit 30bc44fCopy full SHA for 30bc44f
packages/grpc-js/src/load-balancing-call.ts
@@ -140,6 +140,12 @@ export class LoadBalancingCall implements Call {
140
.generateMetadata({ service_url: this.serviceUrl })
141
.then(
142
credsMetadata => {
143
+ /* If this call was cancelled (e.g. by the deadline) before
144
+ * metadata generation finished, we shouldn't do anything with
145
+ * it. */
146
+ if (this.ended) {
147
+ return;
148
+ }
149
const finalMetadata = this.metadata!.clone();
150
finalMetadata.merge(credsMetadata);
151
if (finalMetadata.get('authorization').length > 1) {
0 commit comments