From ba69ba806e66297a4ed6abe382b4c03e419eb808 Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Tue, 28 Jul 2020 23:17:41 -0700 Subject: [PATCH] Handle restart --- src/SampleApp.WinDesktop/NtripView.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SampleApp.WinDesktop/NtripView.xaml.cs b/src/SampleApp.WinDesktop/NtripView.xaml.cs index 1222419..9427586 100644 --- a/src/SampleApp.WinDesktop/NtripView.xaml.cs +++ b/src/SampleApp.WinDesktop/NtripView.xaml.cs @@ -56,7 +56,11 @@ namespace SampleApp.WinDesktop return; if (stop != null) { - await stop(); + try + { + await stop(); + } + catch { } } counter = 0; client.Connect(stream.Mountpoint);