Fix regression in handling logic

This commit is contained in:
Dean Herbert 2018-08-16 16:44:04 +09:00
parent 9fc0a75b71
commit 562a31713e
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ private static bool handleException(Exception arg)
Logger.Log($"Unhandled exception has been {(continueExecution ? "allowed" : "denied")} with {allowableExceptions} more allowable exceptions.");
Task.Delay(1000).ContinueWith(_ => Interlocked.Increment(ref allowableExceptions));
return Interlocked.Decrement(ref allowableExceptions) >= 0;
return continueExecution;
}
}
}