Avoid remaining retries data.

This commit is contained in:
Quentin Decaunes 2019-06-02 20:59:32 +02:00
parent ed9a8cabd6
commit 3d0fd8851d

View File

@ -76,9 +76,8 @@ function applyRyzenSettings() {
child(executablePath, parameters, function(err, data) { child(executablePath, parameters, function(err, data) {
var output = data.toString(); var output = data.toString();
if (err) { if (err) {
let retry = appSettings.get('retry'); if (appSettings.get('retry')) {
if (retry) { return setTimeout(applyRyzenSettings, 500);
return applyRyzenSettings();
} }
notification('danger', err + '<br/>' + output); notification('danger', err + '<br/>' + output);
} }
@ -86,6 +85,7 @@ function applyRyzenSettings() {
notification('success', 'Ryzenadj output:<br/>' + output); notification('success', 'Ryzenadj output:<br/>' + output);
saveLatestUsedSettings(); saveLatestUsedSettings();
} }
appSettings.set('retry', false);
}); });
} }