pool: fix this.options.discover

This commit is contained in:
Javed Khan 2019-02-01 21:56:57 +05:30
parent 127fea663f
commit 3c1fda4826
No known key found for this signature in database
GPG Key ID: 7E31745B904584E6

View File

@ -462,7 +462,7 @@ class Pool extends EventEmitter {
*/
async discoverSeeds(checkPeers) {
if (!this.discover)
if (!this.options.discover)
return;
if (this.hosts.dnsSeeds.length === 0)