From cdf6738ccddc327b2b11c67306ca1feb625f2230 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 24 Jul 2015 17:43:14 +0200 Subject: [PATCH] Force execution of the background queue when an Email::send() is used --- wcfsetup/install/files/lib/system/email/Email.class.php | 1 + 1 file changed, 1 insertion(+) 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(); } /** -- 2.20.1