Skip to content

Commit f64e073

Browse files
committed
Ensure seconds is always positive
1 parent f20eb9b commit f64e073

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
@@ -160,7 +160,7 @@ protected function idle(CarbonInterface $ttl): Generator
160160
protected function getNextTimeout(): CarbonInterface|false
161161
{
162162
if (is_numeric($seconds = value($this->timeout))) {
163-
return Carbon::now()->addSeconds($seconds);
163+
return Carbon::now()->addSeconds(abs($seconds));
164164
}
165165

166166
return false;

0 commit comments

Comments
 (0)