From 918306647db4de296193e64b5a4e77a09bb819bd Mon Sep 17 00:00:00 2001 From: Ruakij Date: Fri, 10 Dec 2021 22:39:21 +0100 Subject: [PATCH] Fixed chunk-error not being stopped after handling --- src/streamHandler/PacketStreamFactory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/streamHandler/PacketStreamFactory.js b/src/streamHandler/PacketStreamFactory.js index 340b9f5..b587673 100644 --- a/src/streamHandler/PacketStreamFactory.js +++ b/src/streamHandler/PacketStreamFactory.js @@ -51,6 +51,7 @@ class PacketStreamFactory extends Transform{ const err = "Chunk was invalid!"; logger.error(err); next(err); + return; } let packet = new Packet();