Skip to content
Snippets Groups Projects
Commit 7bf74bf5 authored by inso's avatar inso
Browse files

[fix]crawler : this is null exceptions

parent 9dee9797
No related branches found
No related tags found
1 merge request!1048[fix]crawler : this is null exceptions
...@@ -202,7 +202,7 @@ export class PeerTester implements DuniterService { ...@@ -202,7 +202,7 @@ export class PeerTester implements DuniterService {
async startService() { async startService() {
if (this.testPeerFifoInterval) if (this.testPeerFifoInterval)
clearInterval(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); await this.testPeers(this.server, this.conf, this.FIRST_CALL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment