Skip to content

Commit 9dec141

Browse files
author
Mathieu Rochette
committed
don't wait for exclusive lock to remove file on release
1 parent 8359e74 commit 9dec141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileLock.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function release()
9393
return;
9494
}
9595

96-
if($this->remove_on_release && $this->flock(LOCK_EX)) {
96+
if ($this->remove_on_release && $this->flock(LOCK_EX | LOCK_NB)) {
9797
unlink($this->lock_file);
9898
}
9999

0 commit comments

Comments
 (0)