Browse Source

fix pool expiration time

main 1.9.0
ghost 9 months ago
parent
commit
ea7afec5dc
  1. 2
      src/Controller/CrontabController.php

2
src/Controller/CrontabController.php

@ -120,7 +120,7 @@ class CrontabController extends AbstractController @@ -120,7 +120,7 @@ class CrontabController extends AbstractController
// Record expired
else
{
if ($pool->getTime() + $this->getParameter('app.pool.timeout') >= time())
if (time() >= $pool->getTime() + $this->getParameter('app.pool.timeout'))
{
// Update status
$pool->setExpired(

Loading…
Cancel
Save