From 3c1fda4826f06b832912eb5969df3887d6f4d898 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Fri, 1 Feb 2019 21:56:57 +0530 Subject: [PATCH] pool: fix this.options.discover --- lib/net/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/pool.js b/lib/net/pool.js index 3b829e5f..d648f973 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -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)