mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Avoid possible race with HasLoadError.
This commit is contained in:
@@ -120,13 +120,16 @@ namespace ICSharpCode.ILSpy
|
||||
|
||||
foreach (var asm in assemblies)
|
||||
{
|
||||
if (asm.HasLoadError)
|
||||
LoadedAssembly.LoadResult result;
|
||||
try
|
||||
{
|
||||
result = await asm.GetLoadResultAsync();
|
||||
}
|
||||
catch
|
||||
{
|
||||
results.Add(asm);
|
||||
continue;
|
||||
}
|
||||
|
||||
var result = await asm.GetLoadResultAsync();
|
||||
if (result.Package != null)
|
||||
{
|
||||
AddDescendants(result.Package.RootFolder);
|
||||
|
||||
Reference in New Issue
Block a user