From 080da4777d65f62a4f1a21fe7a23891454ee8e75 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 8 Jul 2017 11:03:41 +0200 Subject: [PATCH] Use unset after unlock https://github.com/friendica/friendica/pull/3554#issuecomment-313741392 --- src/Util/Lock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Lock.php b/src/Util/Lock.php index 82d2fdda9..754a45ed9 100644 --- a/src/Util/Lock.php +++ b/src/Util/Lock.php @@ -161,7 +161,7 @@ class Lock { return false; } else { $success = @sem_release(self::$semaphore[$fn_name]); - self::$semaphore[$fn_name] = 0; + unset(self::$semaphore[$fn_name]); return $success; } }