瀏覽代碼

Add another missing return after a callback

murgatroid99 8 年之前
父節點
當前提交
b27501bd10
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/node/src/client.js

+ 1 - 0
src/node/src/client.js

@@ -117,6 +117,7 @@ function _write(chunk, encoding, callback) {
        programmer a useful error and to stop the stream properly */
        programmer a useful error and to stop the stream properly */
     this.call.cancelWithStatus(grpc.status.INTERNAL, 'Serialization failure');
     this.call.cancelWithStatus(grpc.status.INTERNAL, 'Serialization failure');
     callback(e);
     callback(e);
+    return;
   }
   }
   if (_.isFinite(encoding)) {
   if (_.isFinite(encoding)) {
     /* Attach the encoding if it is a finite number. This is the closest we
     /* Attach the encoding if it is a finite number. This is the closest we