Skip to content

Commit

Permalink
Unpublish current latency on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersaares committed Jan 2, 2021
1 parent d9e0340 commit eb6e28a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Interpreter.Gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -174,6 +175,7 @@ private void Reset()
MessageArea.Text = "";
LatencyLabel.Text = "";
_latencyMeasurements.Clear();
CurrentLatency.Unpublish();

TrueTime.TimeserverUrl = null;

Expand Down

0 comments on commit eb6e28a

Please sign in to comment.