okapi r654

This commit is contained in:
following
2013-04-01 23:11:23 +02:00
parent 192276e9b5
commit 721ac6b0f5
2 changed files with 2 additions and 4 deletions

View File

@ -62,10 +62,8 @@ class View
public static function call()
{
# First, let's acquire a lock to make sure the update isn't already running.
# We will use one of the existing lock handles, because we don't want to use
# to many of them. See issue 141.
$lock = OkapiLock::get('cronjobs-cron-5');
$lock = OkapiLock::get('db-update');
$lock->acquire();
try