diff options
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs')
| -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>(); |
