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

Loading…
Cancel
Save