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
get { return wait; } get { return wait; }
set set
{ {
if (wait != value) if (wait == value)
{ return;
wait = value; wait = value;
if (!wait && manualResetEvent != null)
{ if (wait || manualResetEvent == null)
return;
manualResetEvent.Set(); manualResetEvent.Set();
manualResetEvent.Dispose(); manualResetEvent.Dispose();
manualResetEvent = null; manualResetEvent = null;
} }
} }
}
}
public override bool VisitASTContext(ASTContext context) public override bool VisitASTContext(ASTContext context)
{ {

Loading…
Cancel
Save