net: fix packet checksum error handling.

This commit is contained in:
Christopher Jeffrey 2016-10-04 15:55:10 -07:00
parent be34f8c7bf
commit cd0a8f2425
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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 {