Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fixes problem with running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Jul 29, 2022
1 parent 7515269 commit f39e4a2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ public function connect(): void

public function disconnect(): void
{
try {
$this->getLock()->forceRelease();
} catch (\Throwable $e) {
$this->logger?->error(
\sprintf('Lock [%s] can not be released. Reason: %s', 'driver.'.$this->getType(), $e->getMessage())
);
}
parent::disconnect();
$this->getLock()->forceRelease();
}
}

0 comments on commit f39e4a2

Please sign in to comment.