mirror of https://github.com/grpc/grpc-node.git
Reverted change to _write in client.js
This commit is contained in:
parent
2008d8b8ca
commit
66a0d973a7
|
@ -80,7 +80,11 @@ function _write(chunk, encoding, callback) {
|
||||||
var batch = {};
|
var batch = {};
|
||||||
batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk);
|
batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk);
|
||||||
this.call.startBatch(batch, function(err, event) {
|
this.call.startBatch(batch, function(err, event) {
|
||||||
callback(err);
|
if (err) {
|
||||||
|
// Something has gone wrong. Stop writing by failing to call callback
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue