1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Merge pull request #7915 from appwrite/fix-7914-custom-smtp-messaging-error

Fix worker crash when using custom SMTP provider
This commit is contained in:
Jake Barnby 2024-04-08 13:54:46 +12:00 committed by GitHub
commit 6ff81bc592
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ namespace Appwrite\Platform\Workers;
use Appwrite\Event\Usage;
use Appwrite\Messaging\Status as MessageStatus;
use Swoole\Runtime;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Config\Config;
@ -80,6 +81,7 @@ class Messaging extends Action
Device $deviceForLocalFiles,
Usage $queueForUsage
): void {
Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$payload = $message->getPayload() ?? [];
if (empty($payload)) {