From 4eaa6b94a60e069c94068c584adeed970448443f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 28 Jun 2017 18:38:18 +0200 Subject: [PATCH] Hide semaphone warning https://github.com/friendica/friendica/issues/3553 --- src/Util/Lock.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Util/Lock.php b/src/Util/Lock.php index a50faf2d90..3988294b0f 100644 --- a/src/Util/Lock.php +++ b/src/Util/Lock.php @@ -157,8 +157,7 @@ class Lock { */ public static function remove($fn_name) { if (function_exists('sem_get') && self::$semaphore[$fn_name]) { - sem_release(self::$semaphore[$fn_name]); - return; + return @sem_release(self::$semaphore[$fn_name]); } $memcache = self::connectMemcache(); -- 2.39.5