fix potential uncatchable error.

This commit is contained in:
Christopher Jeffrey 2016-01-02 05:16:58 -08:00
parent bdc546edbc
commit 9c904f7b4f

View File

@ -440,9 +440,11 @@ Pool.prototype._load = function _load() {
this.load.hiReached = false;
this.emit('debug',
'Requesting inv packet from %s with getblocks',
this.peers.load.address);
if (this.peers.load) {
this.emit('debug',
'Requesting inv packet from %s with getblocks',
this.peers.load.address);
}
if (!this.options.fullNode) {
next = function(hash) {