Add thread-safe close
This commit is contained in:
parent
acabb26378
commit
0f826f6324
|
@ -83,7 +83,7 @@ namespace DeepSpeechWPF
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.Message);
|
MessageBox.Show(ex.Message);
|
||||||
Close();
|
Dispatcher.Invoke(() => { Close(); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue