diff options
| author | Avi Levkovich <avi@twine-s.com> | 2020-01-14 14:57:18 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2020-01-14 14:57:18 +0200 |
| commit | 2b1c55a4e7ba10ecd57f4b4761397a0204dd5b81 (patch) | |
| tree | 18a12a8ed074ce688777957385150c896008f35c /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI | |
| parent | 2f253ebabf81ed0ac62e8d12d91bf626e0995f80 (diff) | |
| parent | 61160b65a7e558127d87fb883911f85b0a825d51 (diff) | |
| download | Tango-2b1c55a4e7ba10ecd57f4b4761397a0204dd5b81.tar.gz Tango-2b1c55a4e7ba10ecd57f4b4761397a0204dd5b81.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs index 161a8cca7..e51247337 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs @@ -147,6 +147,13 @@ namespace Tango.MachineStudio.UI } catch { } + if (e.Exception.ToString().Contains("A Task's exception(s) were not observed")) + { + e.TryRecover = true; + LogManager.Log("Task not observed exception. Ignoring..."); + return; + } + try { var eventLogger = TangoIOC.Default.GetInstance<IEventLogger>(); |
