mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/14257] Fix lock acquire in CLI command
PHPBB3-14257
This commit is contained in:
@@ -174,6 +174,9 @@ class reparse extends \phpbb\console\command\command
|
||||
|
||||
if (!$this->reparse_lock->acquire())
|
||||
{
|
||||
throw new runtime_exception('REPARSE_LOCK_ERROR', array(), null, 1);
|
||||
}
|
||||
|
||||
$this->load_resume_data();
|
||||
|
||||
$name = $input->getArgument('reparser-name');
|
||||
@@ -200,11 +203,6 @@ class reparse extends \phpbb\console\command\command
|
||||
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new runtime_exception('REPARSE_LOCK_ERROR', array(), null, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an option value, adjusted for given reparser
|
||||
|
Reference in New Issue
Block a user