From: Alexandre Alapetite Date: Sat, 8 Jul 2017 09:03:41 +0000 (+0200) Subject: Use unset after unlock X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=080da4777d65f62a4f1a21fe7a23891454ee8e75;p=friendica.git Use unset after unlock https://github.com/friendica/friendica/pull/3554#issuecomment-313741392 --- diff --git a/src/Util/Lock.php b/src/Util/Lock.php index 82d2fdda91..754a45ed9e 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; } }