Browse Source

Do not catch OperationCanceledException: Closes #994

pull/1012/head
Siegfried Pammer 8 years ago
parent
commit
a356f0ee26
  1. 2
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -789,7 +789,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -789,7 +789,7 @@ namespace ICSharpCode.Decompiler.CSharp
RemoveAttribute(entityDecl, new TopLevelTypeName("System.Runtime.CompilerServices", "AsyncStateMachineAttribute"));
RemoveAttribute(entityDecl, new TopLevelTypeName("System.Diagnostics", "DebuggerStepThroughAttribute"));
}
} catch (Exception innerException) {
} catch (Exception innerException) when (!(innerException is OperationCanceledException)) {
throw new DecompilerException(methodDefinition, innerException);
}
}

Loading…
Cancel
Save