Skip to content

Commit

Permalink
Error handle exception handler for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Oct 31, 2024
1 parent 563a5ad commit b4e8485
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion osu.Server.QueueProcessor/QueueProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ public void Run(CancellationToken cancellation = default)
Interlocked.Increment(ref consecutiveErrors);
Error?.Invoke(item.Exception, item);
try
{
Error?.Invoke(item.Exception, item);
}
catch
{
}
if (item.Exception != null)
SentrySdk.CaptureException(item.Exception);
Expand Down

0 comments on commit b4e8485

Please sign in to comment.