Refactor WakeComponent: enable periodic ping retriggering by uncommenting setTimeout logic
parent
174f383968
commit
0a3e402013
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue