Use unset after unlock
https://github.com/friendica/friendica/pull/3554#issuecomment-313741392
This commit is contained in:
parent
84972623f7
commit
080da4777d
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class Lock {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
$success = @sem_release(self::$semaphore[$fn_name]);
|
$success = @sem_release(self::$semaphore[$fn_name]);
|
||||||
self::$semaphore[$fn_name] = 0;
|
unset(self::$semaphore[$fn_name]);
|
||||||
return $success;
|
return $success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue