We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5f519 commit 873da49Copy full SHA for 873da49
Lock.php
@@ -69,10 +69,10 @@ public function __destruct()
69
public function acquire($blocking = false)
70
{
71
try {
72
- if (!$blocking) {
73
- $this->store->save($this->key);
74
- } else {
+ if ($blocking) {
75
$this->store->waitAndSave($this->key);
+ } else {
+ $this->store->save($this->key);
76
}
77
78
$this->dirty = true;
0 commit comments