Skip to content
Snippets Groups Projects
Unverified Commit f32c5ba2 authored by GyDi's avatar GyDi Committed by GitHub
Browse files

fix: do not kill sidecar during updating

parent ab53ab21
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ import { ...@@ -14,7 +14,6 @@ import {
} from "@mui/material"; } from "@mui/material";
import { relaunch } from "@tauri-apps/api/process"; import { relaunch } from "@tauri-apps/api/process";
import { checkUpdate, installUpdate } from "@tauri-apps/api/updater"; import { checkUpdate, installUpdate } from "@tauri-apps/api/updater";
import { killSidecar, restartSidecar } from "@/services/cmds";
import { atomUpdateState } from "@/services/states"; import { atomUpdateState } from "@/services/states";
import Notice from "../base/base-notice"; import Notice from "../base/base-notice";
...@@ -43,11 +42,9 @@ const UpdateDialog = (props: Props) => { ...@@ -43,11 +42,9 @@ const UpdateDialog = (props: Props) => {
setUpdateState(true); setUpdateState(true);
try { try {
await killSidecar();
await installUpdate(); await installUpdate();
await relaunch(); await relaunch();
} catch (err: any) { } catch (err: any) {
await restartSidecar();
Notice.error(err?.message || err.toString()); Notice.error(err?.message || err.toString());
} finally { } finally {
setUpdateState(false); setUpdateState(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment