mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +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
|
@ -539,7 +539,7 @@ class OStatus
|
|||
Logger::log("Item with uri ".$item["uri"]." is from a blocked contact.", Logger::DEBUG);
|
||||
} else {
|
||||
// We are having duplicated entries. Hopefully this solves it.
|
||||
if (Lock::acquire('ostatus_process_item_insert')) {
|
||||
if (DI::lock()->acquire('ostatus_process_item_insert')) {
|
||||
$ret = Item::insert($item);
|
||||
Lock::release('ostatus_process_item_insert');
|
||||
Logger::log("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue