Browse Source

Reduce nesting.

pull/818/head
Joao Matos 9 years ago
parent
commit
5282759c1e
  1. 13
      src/Generator/Passes/FindSymbolsPass.cs

13
src/Generator/Passes/FindSymbolsPass.cs

@ -23,18 +23,19 @@ namespace CppSharp.Passes @@ -23,18 +23,19 @@ namespace CppSharp.Passes
get { return wait; }
set
{
if (wait != value)
{
if (wait == value)
return;
wait = value;
if (!wait && manualResetEvent != null)
{
if (wait || manualResetEvent == null)
return;
manualResetEvent.Set();
manualResetEvent.Dispose();
manualResetEvent = null;
}
}
}
}
public override bool VisitASTContext(ASTContext context)
{

Loading…
Cancel
Save