From 0a3e4020131d32c73d70741dcaa7bcb531a01a70 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 16 Nov 2024 02:13:12 +0200 Subject: [PATCH] Refactor WakeComponent: enable periodic ping retriggering by uncommenting setTimeout logic --- .../features/machines/components/common/WakeComponent.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/features/machines/components/common/WakeComponent.tsx b/frontend/src/features/machines/components/common/WakeComponent.tsx index d82cdfd..3f3843d 100644 --- a/frontend/src/features/machines/components/common/WakeComponent.tsx +++ b/frontend/src/features/machines/components/common/WakeComponent.tsx @@ -71,9 +71,9 @@ const WakeComponent: React.FC = ({ 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); }