Commit efee101d authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] `sync`: Wait up to 15s for the downloading of a chunk in normal mode

parent d2262f9d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment