Skip to content

Commit 7aec71b

Browse files
authored
Merge pull request #135 from smartboxgroup/feature/delay-interceptor
bugfix/feature/delay-interceptor
2 parents 77e1fe4 + 8b15b1c commit 7aec71b

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)