diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index fd0ab31a..1ea7a96d 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -329,7 +329,7 @@ Peer.prototype._onBIP151 = function _onBIP151() { this.write(this.framer.authChallenge(this.bip150.toChallenge())); return this.bip150.wait(5000, function(err) { if (err) - self._error(err, true); + return self._error(err); self._onHandshake(); }); }