peer: do not fire events for unknown packets (bad).

This commit is contained in:
Christopher Jeffrey 2016-08-27 18:41:32 -07:00
parent 1927524c47
commit 97e0122b8b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -974,7 +974,6 @@ Peer.prototype._onPacket = function onPacket(packet) {
return this._handleAuthPropose(payload);
default:
this.logger.warning('Unknown packet: %s.', cmd);
this.fire(cmd, payload);
break;
}
};