From 6f9670cc65aeaa3a1485b773b7742e7c73a09104 Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Wed, 10 Oct 2018 18:19:34 +0200 Subject: [PATCH] Clarify comment explaining packetlist's usage of supportsStreaming --- src/packet/packetlist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packet/packetlist.js b/src/packet/packetlist.js index aa6a8a0e..d85c2382 100644 --- a/src/packet/packetlist.js +++ b/src/packet/packetlist.js @@ -54,8 +54,9 @@ List.prototype.read = async function (bytes) { await writer.write(packet); } catch (e) { if (!config.tolerant || packetParser.supportsStreaming(parsed.tag)) { - // The packets that support streaming also happen to be the same - // ones we want to throw on parse errors for. + // The packets that support streaming are the ones that contain + // message data. Those are also the ones we want to be more strict + // about and throw on parse errors for. await writer.abort(e); } util.print_debug_error(e);