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 e597dba commit 0b43738Copy full SHA for 0b43738
src/Symfony/Component/Lock/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