]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Lock.php
Merge pull request #8077 from annando/notifications
[friendica.git] / src / Console / Lock.php
index 46826cc8c92a384981daef2c055b5e11ccc0af0a..da1f408d0d1ab3b74f0a346d2669cdd1a9b7cebf 100644 (file)
@@ -133,7 +133,7 @@ HELP;
                if (count($this->args) >= 2) {
                        $lock = $this->getArgument(1);
 
-                       if ($this->lock->releaseLock($lock, true)) {
+                       if ($this->lock->release($lock, true)) {
                                $this->out(sprintf('Lock \'%s\' released.', $lock));
                        } else {
                                $this->out(sprintf('Couldn\'t release Lock \'%s\'', $lock));
@@ -156,11 +156,11 @@ HELP;
                        }
 
                        if (!empty($ttl) && !empty($timeout)) {
-                               $result = $this->lock->acquireLock($lock, $timeout, $ttl);
+                               $result = $this->lock->acquire($lock, $timeout, $ttl);
                        } elseif (!empty($timeout)) {
-                               $result = $this->lock->acquireLock($lock, $timeout);
+                               $result = $this->lock->acquire($lock, $timeout);
                        } else {
-                               $result = $this->lock->acquireLock($lock);
+                               $result = $this->lock->acquire($lock);
                        }
 
                        if ($result) {