pool: fix error.

This commit is contained in:
Christopher Jeffrey 2017-01-21 05:19:53 -08:00
parent 44201193e8
commit 518a113e97
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1126,7 +1126,7 @@ Pool.prototype.handleOpen = function handleOpen(peer) {
// If we don't have an ack'd
// loader yet consider it dead.
if (!this.peers.load.handshake) {
if (this.peers.load && !this.peers.load.handshake) {
assert(this.peers.load.loader);
this.peers.load.loader = false;
this.peers.load = null;