diff --git a/RHLauncher.LauncherForm/LauncherForm.cs b/RHLauncher.LauncherForm/LauncherForm.cs index b7c1ecd..aafb460 100644 --- a/RHLauncher.LauncherForm/LauncherForm.cs +++ b/RHLauncher.LauncherForm/LauncherForm.cs @@ -282,7 +282,7 @@ private static async Task CheckServerStatusAsync() try { using HttpClient client = new(); - HttpResponseMessage response = await client.GetAsync(Configuration.Default.GateStatusUrl); + using HttpResponseMessage response = await client.GetAsync(Configuration.Default.GateStatusUrl); response.EnsureSuccessStatusCode(); string json = await response.Content.ReadAsStringAsync(); dynamic result = JsonConvert.DeserializeObject(json); @@ -555,10 +555,6 @@ private void UninstallButton_Click(object sender, EventArgs e) HandleException(ex); } } - else if (result == DialogResult.No) - { - DialogResult = DialogResult.Cancel; - } } }