From efee101da6c81f7f178ac7b7563d8c2f8dde90fd Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Tue, 20 Nov 2018 16:12:38 +0100
Subject: [PATCH] [fix] `sync`: Wait up to 15s for the downloading of a chunk
 in normal mode

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

diff --git a/app/modules/crawler/lib/sync/P2PSyncDownloader.ts b/app/modules/crawler/lib/sync/P2PSyncDownloader.ts
index c8bc97fae..489342dfc 100644
--- a/app/modules/crawler/lib/sync/P2PSyncDownloader.ts
+++ b/app/modules/crawler/lib/sync/P2PSyncDownloader.ts
@@ -18,7 +18,7 @@ import {P2pCandidate} from "./p2p/p2p-candidate"
 export class P2PSyncDownloader extends ASyncDownloader implements ISyncDownloader {
 
   private PARALLEL_PER_CHUNK = 1;
-  private MAX_DELAY_PER_DOWNLOAD = cliprogram.slow ? 2 * 60000 : 5000;
+  private MAX_DELAY_PER_DOWNLOAD = cliprogram.slow ? 2 * 60000 : 15000;
   private TOO_LONG_TIME_DOWNLOAD:string
   private nbBlocksToDownload:number
   private numberOfChunksToDownload:number
-- 
GitLab