mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/14257] Fix lock acquire in CLI command
PHPBB3-14257
This commit is contained in:
parent
c7ebbcf9f2
commit
8b0f8d7b3c
1 changed files with 21 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue