Think positive

This commit is contained in:
Saša Stamenković 2018-09-13 20:01:11 +02:00 committed by Nicolas Grekas
parent e597dba77d
commit 0b43738162

View File

@ -69,10 +69,10 @@ final class Lock implements LockInterface, LoggerAwareInterface
public function acquire($blocking = false)
{
try {
if (!$blocking) {
$this->store->save($this->key);
} else {
if ($blocking) {
$this->store->waitAndSave($this->key);
} else {
$this->store->save($this->key);
}
$this->dirty = true;