Skip to content

Commit

Permalink
Merge pull request grpc#207 from mwei0210/master
Browse files Browse the repository at this point in the history
check closed
  • Loading branch information
Jonny Reeves authored Sep 5, 2018
2 parents 6b0bf77 + ea10f36 commit cfc0b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class GrpcClient<TRequest extends ProtobufMessage, TResponse extends ProtobufMes

rawOnMessage(res: TResponse) {
this.props.debug && debug("rawOnMessage", res.toObject());
if (this.completed) return;
if (this.completed || this.closed) return;
this.onMessageCallbacks.forEach(callback => {
detach(() => {
callback(res);
Expand Down

0 comments on commit cfc0b9e

Please sign in to comment.