projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f846233
)
Hide semaphone warning
author
Alexandre Alapetite
<alexandre@alapetite.fr>
Wed, 28 Jun 2017 16:38:18 +0000
(18:38 +0200)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/src/Util/Lock.php
b/src/Util/Lock.php
index a50faf2d90d8c637cd5252d4974758b80b54f2ec..3988294b0f4026ea7a9f4c5123bc6925639a2f4a 100644
(file)
--- 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();