From 3d0fd8851dbbf299a78cfe0376fade509052b510 Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Sun, 2 Jun 2019 20:59:32 +0200 Subject: [PATCH] Avoid remaining retries data. --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index c8ab4af..81161e9 100644 --- a/js/app.js +++ b/js/app.js @@ -76,9 +76,8 @@ function applyRyzenSettings() { child(executablePath, parameters, function(err, data) { var output = data.toString(); if (err) { - let retry = appSettings.get('retry'); - if (retry) { - return applyRyzenSettings(); + if (appSettings.get('retry')) { + return setTimeout(applyRyzenSettings, 500); } notification('danger', err + '
' + output); } @@ -86,6 +85,7 @@ function applyRyzenSettings() { notification('success', 'Ryzenadj output:
' + output); saveLatestUsedSettings(); } + appSettings.set('retry', false); }); }