From 644bec9f937dffcd7951f4dc1a58aff7696c6f3a Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 29 Oct 2019 12:32:05 +0300 Subject: [PATCH] Update index.js --- test/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/index.js b/test/index.js index bbfe96094c..7de2b3b07d 100644 --- a/test/index.js +++ b/test/index.js @@ -44,14 +44,10 @@ async function test() { await new Promise(resolve => { const timeout = setTimeout(() => { - stats.failures++ - - writeToLog(country.url, `Timeout exceeded`, item.url) - resolve() }, config.timeout * 1000) - ffmpeg(item.url, { timeout: config.timeout }).ffprobe((err) => { + ffmpeg(item.url).ffprobe((err) => { if(err) { const message = parseMessage(err, item.url) @@ -59,7 +55,6 @@ async function test() { stats.failures++ writeToLog(country.url, message, item.url) - } clearTimeout(timeout)