fix potential uncatchable error.
This commit is contained in:
parent
bdc546edbc
commit
9c904f7b4f
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user