small fix

This commit is contained in:
Junior 2023-05-16 12:40:17 -03:00
parent f74d94825d
commit 7917f223e1

View file

@ -282,7 +282,7 @@ namespace RHLauncher
try try
{ {
using HttpClient client = new(); using HttpClient client = new();
HttpResponseMessage response = await client.GetAsync(Configuration.Default.GateStatusUrl); using HttpResponseMessage response = await client.GetAsync(Configuration.Default.GateStatusUrl);
response.EnsureSuccessStatusCode(); response.EnsureSuccessStatusCode();
string json = await response.Content.ReadAsStringAsync(); string json = await response.Content.ReadAsStringAsync();
dynamic result = JsonConvert.DeserializeObject(json); dynamic result = JsonConvert.DeserializeObject(json);
@ -555,10 +555,6 @@ namespace RHLauncher
HandleException(ex); HandleException(ex);
} }
} }
else if (result == DialogResult.No)
{
DialogResult = DialogResult.Cancel;
}
} }
} }