Skip to content

Commit 873da49

Browse files
umpirskynicolas-grekas
authored andcommitted
Think positive
1 parent ed5f519 commit 873da49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public function __destruct()
6969
public function acquire($blocking = false)
7070
{
7171
try {
72-
if (!$blocking) {
73-
$this->store->save($this->key);
74-
} else {
72+
if ($blocking) {
7573
$this->store->waitAndSave($this->key);
74+
} else {
75+
$this->store->save($this->key);
7676
}
7777

7878
$this->dirty = true;

0 commit comments

Comments
 (0)