diff --git a/package.json b/package.json index c93a7e11..f5cb0ef6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.25.2", + "version": "0.25.3", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/contexts/RobotContext.tsx b/src/contexts/RobotContext.tsx index b6d4cd7e..2b4b7b3d 100644 --- a/src/contexts/RobotContext.tsx +++ b/src/contexts/RobotContext.tsx @@ -305,12 +305,14 @@ export default ({ children }: any) => { }); }); - vdiClient?.addEventListener("close", () => { - dispatcher({ - type: "vdi", - payload: false, - }); - }); + // vdiClient?.addEventListener("close", () => { + // dispatcher({ + // type: "vdi", + // payload: false, + // }); + // }); + + connectionsReducer?.vdi !== null && vdiClient && vdiClient.close(); return () => { vdiClient?.close();