Skip to content

Commit f20eb9b

Browse files
committed
Ensure diffInSeconds is always positive
1 parent 18a0564 commit f20eb9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Idle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected function done(): void
150150
protected function idle(CarbonInterface $ttl): Generator
151151
{
152152
yield from $this->mailbox->connection()->idle(
153-
(int) Carbon::now()->diffInSeconds($ttl)
153+
(int) Carbon::now()->diffInSeconds($ttl, true)
154154
);
155155
}
156156

0 commit comments

Comments
 (0)