mirror of
https://github.com/friendica/friendica
synced 2025-05-22 01:04:12 +02:00
Fixing force-flag for lock-releasing
This commit is contained in:
parent
9f11476ca0
commit
9b07132b80
6 changed files with 23 additions and 11 deletions
|
@ -122,12 +122,13 @@ class Lock
|
|||
/**
|
||||
* @brief Releases a lock if it was set by us
|
||||
*
|
||||
* @param string $key Name of the lock
|
||||
* @param string $key Name of the lock
|
||||
* @param bool $force Force the lock to get releases
|
||||
* @return void
|
||||
*/
|
||||
public static function release($key)
|
||||
public static function release($key, $force = false)
|
||||
{
|
||||
self::getDriver()->releaseLock($key);
|
||||
self::getDriver()->releaseLock($key, $force);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue