From: Alexandre Alapetite Date: Wed, 28 Jun 2017 16:38:18 +0000 (+0200) Subject: Hide semaphone warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4eaa6b94a60e069c94068c584adeed970448443f;p=friendica.git Hide semaphone warning https://github.com/friendica/friendica/issues/3553 --- 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();