Skip to content

Commit

Permalink
fix bug that grpc-status response headers resulted in doubled executi…
Browse files Browse the repository at this point in the history
…on of the callback provided to rpcCall.
  • Loading branch information
Holger Finger committed Dec 19, 2019
1 parent d03435f commit c732162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/net/grpc/web/grpcwebclientreadablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const GrpcWebClientReadableStream = function(genericTransportInterface) {
});
errorEmitted = true;
}
if (self.onStatusCallback_) {
if (!errorEmitted && self.onStatusCallback_) {
self.onStatusCallback_(/** @type {!Status} */ ({
code: Number(grpcStatusCode),
details: grpcStatusMessage,
Expand Down

0 comments on commit c732162

Please sign in to comment.