[ticket/12597] Fix misplaced release of db lock

PHPBB3-12597
This commit is contained in:
LEZY Thomas 2014-05-28 16:47:57 +02:00
parent 9a78772745
commit 5fca308138

View file

@ -60,10 +60,10 @@ if ($cron_lock->acquire())
if ($task->is_ready()) if ($task->is_ready())
{ {
$task->run(); $task->run();
$cron_lock->release();
garbage_collection(); garbage_collection();
} }
} }
$cron_lock->release();
} }
else else