Think positive
This commit is contained in:
parent
e597dba77d
commit
0b43738162
@ -69,10 +69,10 @@ final class Lock implements LockInterface, LoggerAwareInterface
|
|||||||
public function acquire($blocking = false)
|
public function acquire($blocking = false)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (!$blocking) {
|
if ($blocking) {
|
||||||
$this->store->save($this->key);
|
|
||||||
} else {
|
|
||||||
$this->store->waitAndSave($this->key);
|
$this->store->waitAndSave($this->key);
|
||||||
|
} else {
|
||||||
|
$this->store->save($this->key);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->dirty = true;
|
$this->dirty = true;
|
||||||
|
Reference in New Issue
Block a user