Skip to content

Commit 8b15b1c

Browse files
author
Jason Silva
committed
Add check to only allow delay if value greater than 0
1 parent 77e1fe4 commit 8b15b1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Processors/ControlFlow/DelayInterceptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function doProcess(Exchange $exchange, SerializableArray $processingCo
5353
{
5454
$delayPeriodInSeconds = $exchange->getIn()->getHeader('delay') ?? null;
5555

56-
if (!is_null($delayPeriodInSeconds)) {
56+
if (!is_null($delayPeriodInSeconds) && (int) $delayPeriodInSeconds > 0) {
5757
throw new DelayException();
5858
}
5959
}

0 commit comments

Comments
 (0)