Skip to content

Commit 4e0cc1b

Browse files
Merge pull request appwrite#6966 from appwrite/fix-mails-worker
fix: mails worker using TLS
2 parents 8e44f35 + d19baaf commit 4e0cc1b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/Appwrite/Platform/Workers/Mails.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Appwrite\Template\Template;
66
use Exception;
77
use PHPMailer\PHPMailer\PHPMailer;
8+
use Swoole\Runtime;
89
use Utopia\App;
910
use Utopia\CLI\Console;
1011
use Utopia\Platform\Action;
@@ -39,7 +40,7 @@ public function __construct()
3940
*/
4041
public function action(Message $message, Registry $register): void
4142
{
42-
43+
Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
4344
$payload = $message->getPayload() ?? [];
4445

4546
if (empty($payload)) {

0 commit comments

Comments
 (0)