From 997b3c92bbc0442dcc13a4a0e703c173a8c9e400 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 27 Jun 2024 13:16:42 +0400 Subject: [PATCH] Fix improper handling of connectivity errors --- Bloxstrap/App.xaml.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/App.xaml.cs b/Bloxstrap/App.xaml.cs index f803039..47cc794 100644 --- a/Bloxstrap/App.xaml.cs +++ b/Bloxstrap/App.xaml.cs @@ -156,7 +156,14 @@ namespace Bloxstrap // TEMPORARY FILL-IN FOR NEW FUNCTIONALITY // REMOVE WHEN LARGER REFACTORING IS DONE - await RobloxDeployment.InitializeConnectivity(); + var connectionResult = await RobloxDeployment.InitializeConnectivity(); + + if (connectionResult is not null) + { + Logger.WriteException(LOG_IDENT, connectionResult); + Frontend.ShowConnectivityDialog("Roblox", Bloxstrap.Resources.Strings.Bootstrapper_Connectivity_Preventing, connectionResult); + return; + } if (LaunchSettings.IsUninstall && IsFirstRun) {