Skip to content
Snippets Groups Projects
Commit b4f244f0 authored by murgatroid99's avatar murgatroid99
Browse files

Reverted change to _write in client.js

parent 6d1a8449
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,11 @@ function _write(chunk, encoding, callback) { ...@@ -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();
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment