diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index bbcbefa3..238715da 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -898,10 +898,11 @@ export default function KvmIdRoute() { useEffect(() => { if (appVersion) return; + if (rpcDataChannel?.readyState !== "open") return; getLocalVersion(); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [appVersion]); + }, [appVersion, rpcDataChannel?.readyState]); const ConnectionStatusElement = useMemo(() => { const isOtherSession = location.pathname.includes("other-session");