From bd201d1aa8c729cf6ca4e71021db29d9725fa69f Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 20 Mar 2025 15:09:25 -0400 Subject: [PATCH] this shouldn't be necessary but wrap peer.Start() with an exception handler; --- dvmconsole/MainWindow.xaml.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dvmconsole/MainWindow.xaml.cs b/dvmconsole/MainWindow.xaml.cs index ddc73c3..25abe03 100644 --- a/dvmconsole/MainWindow.xaml.cs +++ b/dvmconsole/MainWindow.xaml.cs @@ -329,7 +329,14 @@ namespace dvmconsole Task.Run(() => { - peer.Start(); + try + { + peer.Start(); + } + catch (Exception e) + { + MessageBox.Show($"Fatal error while connecting to server. {e.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Error); + } }); if (!settingsManager.ShowSystemStatus)