From f32c5ba2441044625d32fe1b21c42a4944520792 Mon Sep 17 00:00:00 2001 From: GyDi Date: Fri, 9 Sep 2022 16:33:04 +0800 Subject: [PATCH] fix: do not kill sidecar during updating --- src/components/layout/update-dialog.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/layout/update-dialog.tsx b/src/components/layout/update-dialog.tsx index d4345b8..e7f45f9 100644 --- a/src/components/layout/update-dialog.tsx +++ b/src/components/layout/update-dialog.tsx @@ -14,7 +14,6 @@ import { } from "@mui/material"; import { relaunch } from "@tauri-apps/api/process"; import { checkUpdate, installUpdate } from "@tauri-apps/api/updater"; -import { killSidecar, restartSidecar } from "@/services/cmds"; import { atomUpdateState } from "@/services/states"; import Notice from "../base/base-notice"; @@ -43,11 +42,9 @@ const UpdateDialog = (props: Props) => { setUpdateState(true); try { - await killSidecar(); await installUpdate(); await relaunch(); } catch (err: any) { - await restartSidecar(); Notice.error(err?.message || err.toString()); } finally { setUpdateState(false);