]> git.mxchange.org Git - friendica.git/commitdiff
Use unset after unlock
authorAlexandre Alapetite <alexandre.alapetite@alexandra.dk>
Sat, 8 Jul 2017 09:03:41 +0000 (11:03 +0200)
committerAlexandre Alapetite <alexandre.alapetite@alexandra.dk>
Sat, 8 Jul 2017 09:03:41 +0000 (11:03 +0200)
https://github.com/friendica/friendica/pull/3554#issuecomment-313741392

src/Util/Lock.php

index 82d2fdda91d01c3a2606333db2419d5f9badf903..754a45ed9ea02dc0935fbb8031a7035fb2e8afc0 100644 (file)
@@ -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;
                        }
                }