Refactor WakeComponent: enable periodic ping retriggering by uncommenting setTimeout logic

master^2
Tudor Stanciu 2024-11-16 02:13:12 +02:00
parent 174f383968
commit 0a3e402013
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ const WakeComponent: React.FC<Props> = ({ machine, addLog, disabled }) => {
//retrigger
log(`Periodic ping will be re-triggered in ${startingTime} ms [${msToMinAndSec(startingTime)}]`);
// setTimeout(() => {
// setTrigger(prev => !prev);
// }, startingTime);
setTimeout(() => {
setTrigger(prev => !prev);
}, startingTime);
} else {
blip.error(result.status);
}