Force execution of the background queue when an Email::send() is used
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 24 Jul 2015 15:43:14 +0000 (17:43 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 24 Jul 2015 15:43:14 +0000 (17:43 +0200)
wcfsetup/install/files/lib/system/email/Email.class.php

index 84ec7324e8b87d8e9632a9b3127763ec1e3c106d..b251959e3c1f8a89817a450e82d27eeaebbe142b 100644 (file)
@@ -628,6 +628,7 @@ class Email {
        public function send() {
                $jobs = $this->getJobs();
                BackgroundQueueHandler::getInstance()->enqueueIn($jobs);
+               BackgroundQueueHandler::getInstance()->forceCheck();
        }
        
        /**