Fix multiple sentry reports arriving for similar exceptions

This commit is contained in:
Dean Herbert
2018-08-17 12:03:31 +09:00
parent 3818cd6030
commit 83dc01d07c
2 changed files with 19 additions and 5 deletions

View File

@ -62,9 +62,11 @@ namespace osu.Desktop
{
bool continueExecution = Interlocked.Decrement(ref allowableExceptions) >= 0;
Logger.Log($"Unhandled exception has been {(continueExecution ? "allowed" : "denied")} with {allowableExceptions} more allowable exceptions.");
Logger.Log($"Unhandled exception has been {(continueExecution ? "allowed with {allowableExceptions} more allowable exceptions" : "denied")} .");
// restore the stock of allowable exceptions after a short delay.
Task.Delay(1000).ContinueWith(_ => Interlocked.Increment(ref allowableExceptions));
return continueExecution;
}
}