sforkowany z mirror/friendica
Use unset after unlock
https://github.com/friendica/friendica/pull/3554#issuecomment-3137413922022.09-rc
rodzic
84972623f7
commit
080da4777d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue