From b30b53dd2aab2a696c9110d19dea65a6e87e9909 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Feb 2021 11:43:16 +0100 Subject: [PATCH] Call ->onFinalFailure() when encountering a PermanentFailure during email delivery --- .../system/background/job/EmailDeliveryBackgroundJob.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index 6bb0d34c8e..04eb69f33d 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -119,6 +119,7 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob } catch (PermanentFailure $e) { // no need for retrying. Eat Exception and log the error. \wcf\functions\exception\logThrowable($e); + $this->onFinalFailure(); } } } -- 2.20.1