Skip to content

Commit

Permalink
Release database lock before bailing out
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed Jan 9, 2020
1 parent 34c6a9f commit f55d76e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Skeleton/Transaction/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public function lock() {
$this->get_details();

if ($this->locked) {
$db->release_lock('runnable');
throw new Exception\Locked();
}

Expand Down

0 comments on commit f55d76e

Please sign in to comment.