diff --git a/ILSpy/TreeNodes/AssemblyTreeNode.cs b/ILSpy/TreeNodes/AssemblyTreeNode.cs index 2d3aad07e..12211e632 100644 --- a/ILSpy/TreeNodes/AssemblyTreeNode.cs +++ b/ILSpy/TreeNodes/AssemblyTreeNode.cs @@ -89,6 +89,8 @@ namespace ICSharpCode.ILSpy.TreeNodes RaisePropertyChanged("ExpandedIcon"); if (assemblyTask.IsFaulted) { RaisePropertyChanged("ShowExpander"); // cannot expand assemblies with load error + // observe the exception so that the Task's finalizer doesn't re-throw it + try { assemblyTask.Wait(); } catch (AggregateException) {} } else { RaisePropertyChanged("Text"); // shortname might have changed }