From b4e84856d70a1a7422537989075000bfbd074fc5 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 31 Oct 2024 19:46:23 +0900 Subject: [PATCH] Error handle exception handler for safety --- osu.Server.QueueProcessor/QueueProcessor.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Server.QueueProcessor/QueueProcessor.cs b/osu.Server.QueueProcessor/QueueProcessor.cs index 0136590..4cfe21c 100644 --- a/osu.Server.QueueProcessor/QueueProcessor.cs +++ b/osu.Server.QueueProcessor/QueueProcessor.cs @@ -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);