mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Replace Lock::acquire() with DI::lock()->acquire()
This commit is contained in:
parent
e56c8dcc3c
commit
634e657d23
13 changed files with 38 additions and 52 deletions
|
@ -156,11 +156,11 @@ HELP;
|
|||
}
|
||||
|
||||
if (!empty($ttl) && !empty($timeout)) {
|
||||
$result = $this->lock->acquireLock($lock, $timeout, $ttl);
|
||||
$result = $this->lock->acquire($lock, $timeout, $ttl);
|
||||
} elseif (!empty($timeout)) {
|
||||
$result = $this->lock->acquireLock($lock, $timeout);
|
||||
$result = $this->lock->acquire($lock, $timeout);
|
||||
} else {
|
||||
$result = $this->lock->acquireLock($lock);
|
||||
$result = $this->lock->acquire($lock);
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue