net: fix packet checksum error handling.
This commit is contained in:
parent
be34f8c7bf
commit
cd0a8f2425
@ -135,10 +135,7 @@ Parser.prototype.parse = function parse(data) {
|
||||
if (checksum !== this.header.checksum) {
|
||||
this.waiting = 24;
|
||||
this.header = null;
|
||||
return this.error(
|
||||
'Invalid checksum: %d != %d',
|
||||
utils.hex32(checksum),
|
||||
utils.hex32(this.header.checksum));
|
||||
return this.error('Invalid checksum: %d.', utils.hex32(checksum));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user