mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03: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) {
|
||||
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 + '<br/>' + output);
|
||||
}
|
||||
@ -86,6 +85,7 @@ function applyRyzenSettings() {
|
||||
notification('success', 'Ryzenadj output:<br/>' + output);
|
||||
saveLatestUsedSettings();
|
||||
}
|
||||
appSettings.set('retry', false);
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user