Skip to content

Commit 3773f46

Browse files
committed
fix: update flow
1 parent d48194e commit 3773f46

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/c#/GeneralUpdate.ClientCore/GeneralClientOSS.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,13 @@ await Task.Run(() =>
4848
var json = JsonSerializer.Serialize(configGlobalConfigInfo, GlobalConfigInfoOSSJsonContext.Default.GlobalConfigInfoOSS);
4949
Environments.SetEnvironmentVariable("GlobalConfigInfoOSS", json);
5050
Process.Start(appPath);
51+
Process.GetCurrentProcess().Kill();
5152
}
5253
catch (Exception ex)
5354
{
5455
Debug.WriteLine(ex.Message);
5556
throw new Exception(ex.Message + "\n" + ex.StackTrace);
5657
}
57-
finally
58-
{
59-
Process.GetCurrentProcess().Kill();
60-
}
6158
});
6259
}
6360

0 commit comments

Comments
 (0)