Ver Fonte

Add missing return

murgatroid99 há 8 anos atrás
pai
commit
45d4561cd0
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/node/src/server.js

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

@@ -133,6 +133,7 @@ function sendUnaryResponse(call, value, serialize, metadata, flags) {
   } catch (e) {
   } catch (e) {
     e.code = grpc.status.INTERNAL;
     e.code = grpc.status.INTERNAL;
     handleError(e);
     handleError(e);
+    return;
   }
   }
   message.grpcWriteFlags = flags;
   message.grpcWriteFlags = flags;
   end_batch[grpc.opType.SEND_MESSAGE] = message;
   end_batch[grpc.opType.SEND_MESSAGE] = message;