From 7bf74bf5f3c8d686953799edfb1ec80bb916e5d2 Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmaiL.com>
Date: Sun, 30 Jul 2017 17:03:04 +0200
Subject: [PATCH] [fix]crawler : this is null exceptions

---
 app/modules/crawler/lib/crawler.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/modules/crawler/lib/crawler.ts b/app/modules/crawler/lib/crawler.ts
index 102539322..9e1133d79 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);
   }
 
-- 
GitLab