Skip to content

Commit

Permalink
Add thread-safe close
Browse files Browse the repository at this point in the history
  • Loading branch information
carlfm01 committed Oct 5, 2019
1 parent acabb26 commit 0f826f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/net_framework/DeepSpeechWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
catch (Exception ex)
{
MessageBox.Show(ex.Message);
Close();
Dispatcher.Invoke(() => { Close(); });
}
});
}
Expand Down

0 comments on commit 0f826f6

Please sign in to comment.