]> git.mxchange.org Git - friendica.git/commitdiff
Hide semaphone warning
authorAlexandre Alapetite <alexandre@alapetite.fr>
Wed, 28 Jun 2017 16:38:18 +0000 (18:38 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Wed, 28 Jun 2017 16:38:18 +0000 (18:38 +0200)
https://github.com/friendica/friendica/issues/3553

src/Util/Lock.php

index a50faf2d90d8c637cd5252d4974758b80b54f2ec..3988294b0f4026ea7a9f4c5123bc6925639a2f4a 100644 (file)
@@ -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();