Reverted change to _write in client.js

This commit is contained in:
murgatroid99 2015-05-22 11:06:11 -07:00
parent 2008d8b8ca
commit 66a0d973a7
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ function _write(chunk, encoding, callback) {
var batch = {};
batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk);
this.call.startBatch(batch, function(err, event) {
callback(err);
if (err) {
// Something has gone wrong. Stop writing by failing to call callback
return;
}
callback();
});
}