mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Avoid remaining retries data.
This commit is contained in:
parent
ed9a8cabd6
commit
3d0fd8851d
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user