Skip to content

Commit 38c1f98

Browse files
committed
fix for previous commit: change exit status to OK on enabled throttle.ignoreExceptions
1 parent c20b290 commit 38c1f98

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/SendmailWrapper.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,13 @@ public function run()
136136
}
137137

138138
// terminate if message limit exceeded
139-
if ($throttleOn && $status > SendmailThrottle::STATUS_OK && !($ignoreExceptions && $status == SendmailThrottle::STATUS_EXCEPTION)) {
140-
// return exit status
141-
return $status;
139+
if ($throttleOn && $status > SendmailThrottle::STATUS_OK) {
140+
if ($ignoreExceptions && $status == SendmailThrottle::STATUS_EXCEPTION) {
141+
$status = SendmailThrottle::STATUS_OK;
142+
} else {
143+
// return exit status
144+
return $status;
145+
}
142146
}
143147

144148
// get arguments

0 commit comments

Comments
 (0)