EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Rethrow on last iteration
Yuriid958c841a0ec
diff --git a/application/Espo/Core/Mail/Importer/EmailSaver.php b/application/Espo/Core/Mail/Importer/EmailSaver.phpindex 367f65eb08..f29460d628 100644--- a/application/Espo/Core/Mail/Importer/EmailSaver.php+++ b/application/Espo/Core/Mail/Importer/EmailSaver.php@@ -55,6 +55,10 @@ class EmailSaver// Handles a snapshot isolation conflict.if ($code === 1020) {+ if ($i === self::SAVE_RETRY_COUNT - 1) {+ throw $e;+ }+continue;}