mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
Order of semaphore processing
This commit is contained in:
parent
3bb77d2686
commit
84972623f7
1 changed files with 2 additions and 2 deletions
|
@ -160,9 +160,9 @@ class Lock {
|
|||
if (empty(self::$semaphore[$fn_name])) {
|
||||
return false;
|
||||
} else {
|
||||
$rid = self::$semaphore[$fn_name];
|
||||
$success = @sem_release(self::$semaphore[$fn_name]);
|
||||
self::$semaphore[$fn_name] = 0;
|
||||
return @sem_release($rid);
|
||||
return $success;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue