From: Tim Düsterhus Date: Fri, 24 Jul 2015 15:43:14 +0000 (+0200) Subject: Force execution of the background queue when an Email::send() is used X-Git-Tag: 3.0.0_Beta_1~2166^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cdf6738ccddc327b2b11c67306ca1feb625f2230;p=GitHub%2FWoltLab%2FWCF.git Force execution of the background queue when an Email::send() is used --- diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index 84ec7324e8..b251959e3c 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -628,6 +628,7 @@ class Email { public function send() { $jobs = $this->getJobs(); BackgroundQueueHandler::getInstance()->enqueueIn($jobs); + BackgroundQueueHandler::getInstance()->forceCheck(); } /**