1
0
Fork 0

Hide semaphone warning

https://github.com/friendica/friendica/issues/3553
This commit is contained in:
Alexandre Alapetite 2017-06-28 18:38:18 +02:00
parent f846233a6b
commit 4eaa6b94a6

View file

@ -157,8 +157,7 @@ class Lock {
*/ */
public static function remove($fn_name) { public static function remove($fn_name) {
if (function_exists('sem_get') && self::$semaphore[$fn_name]) { if (function_exists('sem_get') && self::$semaphore[$fn_name]) {
sem_release(self::$semaphore[$fn_name]); return @sem_release(self::$semaphore[$fn_name]);
return;
} }
$memcache = self::connectMemcache(); $memcache = self::connectMemcache();