Clarify comment explaining packetlist's usage of supportsStreaming
This commit is contained in:
parent
c3b33c4251
commit
6f9670cc65
|
@ -54,8 +54,9 @@ List.prototype.read = async function (bytes) {
|
||||||
await writer.write(packet);
|
await writer.write(packet);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!config.tolerant || packetParser.supportsStreaming(parsed.tag)) {
|
if (!config.tolerant || packetParser.supportsStreaming(parsed.tag)) {
|
||||||
// The packets that support streaming also happen to be the same
|
// The packets that support streaming are the ones that contain
|
||||||
// ones we want to throw on parse errors for.
|
// message data. Those are also the ones we want to be more strict
|
||||||
|
// about and throw on parse errors for.
|
||||||
await writer.abort(e);
|
await writer.abort(e);
|
||||||
}
|
}
|
||||||
util.print_debug_error(e);
|
util.print_debug_error(e);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user