Call ->onFinalFailure() when encountering a PermanentFailure during email delivery
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 15 Feb 2021 10:43:16 +0000 (11:43 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 15:24:44 +0000 (16:24 +0100)
wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php

index 6bb0d34c8e66bb6cd2b234b34e5b135eabe3513e..04eb69f33d071cf232af1bc5ac0e4e43cd7d61db 100644 (file)
@@ -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();
         }
     }
 }