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
|
//retrigger
|
||||||
log(`Periodic ping will be re-triggered in ${startingTime} ms [${msToMinAndSec(startingTime)}]`);
|
log(`Periodic ping will be re-triggered in ${startingTime} ms [${msToMinAndSec(startingTime)}]`);
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// setTrigger(prev => !prev);
|
setTrigger(prev => !prev);
|
||||||
// }, startingTime);
|
}, startingTime);
|
||||||
} else {
|
} else {
|
||||||
blip.error(result.status);
|
blip.error(result.status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue