fix: better healthcheck boolean logic

This commit is contained in:
rjindael 2023-07-31 02:54:46 -07:00
parent e35f4913e8
commit d4c88052d9
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 1 additions and 2 deletions

View File

@ -13,12 +13,11 @@ namespace Kiseki.Launcher.Windows
Directory.CreateDirectory(Directories.Base);
int response = await Web.CheckHealth();
if (response != Web.RESPONSE_SUCCESS || response != Web.RESPONSE_MAINTENANCE)
if (response != Web.RESPONSE_SUCCESS)
{
if (response != Web.RESPONSE_MAINTENANCE)
{
// The Kiseki website is either down or we can't connect to the internet.
// TODO: This is a strange scenario where we need to display an error outside of the controller. Can we do this within the page instead of a message box?
MessageBox.Show($"Failed to connect to the {Constants.ProjectName} website. Please check your internet connection.", Constants.ProjectName, MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(0);
}