diff --git a/app/modules/crawler/lib/crawler.ts b/app/modules/crawler/lib/crawler.ts index 1025393222e8bc6cf52480dad2aa9b14ffdadb29..9e1133d794e5a2289689a919834c32250d3b43b2 100644 --- a/app/modules/crawler/lib/crawler.ts +++ b/app/modules/crawler/lib/crawler.ts @@ -202,7 +202,7 @@ export class PeerTester implements DuniterService { async startService() { if (this.testPeerFifoInterval) clearInterval(this.testPeerFifoInterval); - this.testPeerFifoInterval = setInterval(() => this.testPeerFifo.push((cb:any) => this.testPeers.bind(null, this.server, this.conf, !this.FIRST_CALL)().then(cb).catch(cb)), 1000 * CrawlerConstants.TEST_PEERS_INTERVAL); + this.testPeerFifoInterval = setInterval(() => this.testPeerFifo.push((cb:any) => this.testPeers.bind(this, this.server, this.conf, !this.FIRST_CALL)().then(cb).catch(cb)), 1000 * CrawlerConstants.TEST_PEERS_INTERVAL); await this.testPeers(this.server, this.conf, this.FIRST_CALL); }