mirror of https://github.com/grpc/grpc-web.git
fix bug that grpc-status response headers resulted in doubled execution of the callback provided to rpcCall.
This commit is contained in:
parent
4a5b5b3da6
commit
764d5bcd18
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue