From 0f5a2a0b87c394ba508983c074ffa7d3f99c5f3f Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Thu, 11 Feb 2021 14:19:35 -0300 Subject: [PATCH] fix: add unlock process on shutdown function #383 --- src/classes/class-tainacan-background-process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/class-tainacan-background-process.php b/src/classes/class-tainacan-background-process.php index a6376d733..8f20ac060 100644 --- a/src/classes/class-tainacan-background-process.php +++ b/src/classes/class-tainacan-background-process.php @@ -310,7 +310,7 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process { $this->close( $batch->key, 'errored' ); $this->debug('Batch closed due to captured error'); - + $this->unlock_process(); }); $task = $batch;