Skip to content

Commit 049a7da

Browse files
committed
Merge branch 'master' into v4
2 parents b948e83 + 2ff5f6d commit 049a7da

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
4.1.3
2+
3+
- fixed file storage not unlocking index when cleanup has nothing to clean (implemented by Nacoma, thanks!)
4+
15
4.1.2
26

37
- fixed interaction when making HTTP requests in feature tests when collecting tests in Laravel

Clockwork/Clockwork.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Clockwork implements LoggerInterface
2121
/**
2222
* Clockwork version
2323
*/
24-
const VERSION = '4.1.2';
24+
const VERSION = '4.1.3';
2525

2626
/**
2727
* Array of data sources, these objects provide data to be stored in a request object

Clockwork/Storage/FileStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function cleanup($force = false)
106106
new Search([ 'received' => [ '<' . date('c', $expirationTime) ] ], [ 'stopOnFirstMismatch' => true ])
107107
);
108108

109-
if (! count($old)) return;
109+
if (! count($old)) return $this->closeIndex(true);
110110

111111
$this->readPreviousIndex();
112112
$this->trimIndex();

0 commit comments

Comments
 (0)