fix: add unlock process on shutdown function #383

This commit is contained in:
vnmedeiros 2021-02-11 14:19:35 -03:00
parent 01b6e0798d
commit 2eed496a89
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
$this->close( $batch->key, 'errored' ); $this->close( $batch->key, 'errored' );
$this->debug('Batch closed due to captured error'); $this->debug('Batch closed due to captured error');
$this->unlock_process();
}); });
$task = $batch; $task = $batch;