From eb6e28a2cb8629f99ff49aa41c86791af7bbcd7a Mon Sep 17 00:00:00 2001 From: Sander Saares Date: Sat, 2 Jan 2021 07:05:05 +0200 Subject: [PATCH] Unpublish current latency on reset --- Interpreter.Gui/MainWindow.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Interpreter.Gui/MainWindow.xaml.cs b/Interpreter.Gui/MainWindow.xaml.cs index 8e03a2e..d5926a3 100644 --- a/Interpreter.Gui/MainWindow.xaml.cs +++ b/Interpreter.Gui/MainWindow.xaml.cs @@ -166,6 +166,7 @@ private void MainWindow_Loaded(object sender, RoutedEventArgs e) private void MainWindow_Unloaded(object sender, RoutedEventArgs e) { _timer.Stop(); + CurrentLatency.Unpublish(); } private void Reset() @@ -174,6 +175,7 @@ private void Reset() MessageArea.Text = ""; LatencyLabel.Text = ""; _latencyMeasurements.Clear(); + CurrentLatency.Unpublish(); TrueTime.TimeserverUrl = null;