Replace Lock::release() with DI::lock()->release() and remove Core\Lock
This commit is contained in:
@@ -2076,11 +2076,11 @@ class Item
|
||||
} else {
|
||||
// This shouldn't happen.
|
||||
Logger::log('Could not insert activity for URI ' . $item['uri'] . ' - should not happen');
|
||||
Lock::release('item_insert_activity');
|
||||
DI::lock()->release('item_insert_activity');
|
||||
return false;
|
||||
}
|
||||
if ($locked) {
|
||||
Lock::release('item_insert_activity');
|
||||
DI::lock()->release('item_insert_activity');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -2121,7 +2121,7 @@ class Item
|
||||
Logger::log('Could not insert content for URI ' . $item['uri'] . ' - should not happen');
|
||||
}
|
||||
if ($locked) {
|
||||
Lock::release('item_insert_content');
|
||||
DI::lock()->release('item_insert_content');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user