pool: fix error.
This commit is contained in:
parent
44201193e8
commit
518a113e97
@ -1126,7 +1126,7 @@ Pool.prototype.handleOpen = function handleOpen(peer) {
|
|||||||
|
|
||||||
// If we don't have an ack'd
|
// If we don't have an ack'd
|
||||||
// loader yet consider it dead.
|
// loader yet consider it dead.
|
||||||
if (!this.peers.load.handshake) {
|
if (this.peers.load && !this.peers.load.handshake) {
|
||||||
assert(this.peers.load.loader);
|
assert(this.peers.load.loader);
|
||||||
this.peers.load.loader = false;
|
this.peers.load.loader = false;
|
||||||
this.peers.load = null;
|
this.peers.load = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user