Browse Source

Reduce nesting.

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

21
src/Generator/Passes/FindSymbolsPass.cs

@ -23,16 +23,17 @@ namespace CppSharp.Passes @@ -23,16 +23,17 @@ namespace CppSharp.Passes
get { return wait; }
set
{
if (wait != value)
{
wait = value;
if (!wait && manualResetEvent != null)
{
manualResetEvent.Set();
manualResetEvent.Dispose();
manualResetEvent = null;
}
}
if (wait == value)
return;
wait = value;
if (wait || manualResetEvent == null)
return;
manualResetEvent.Set();
manualResetEvent.Dispose();
manualResetEvent = null;
}
}

Loading…
Cancel
Save