File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
lib/internal/Magento/Framework/View/Asset Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ public function __construct(Filesystem $filesystem)
59
59
60
60
/**
61
61
* @inheritdoc
62
- * @throws FileSystemException
63
62
*/
64
63
public function lockProcess ($ lockName )
65
64
{
@@ -94,14 +93,18 @@ public function unlockProcess()
94
93
* Check whether generation process has already locked
95
94
*
96
95
* @return bool
97
- * @throws FileSystemException
98
96
*/
99
97
private function isProcessLocked ()
100
98
{
101
99
if ($ this ->tmpDirectory ->isExist ($ this ->lockFilePath )) {
102
- $ lockTime = (int ) $ this ->tmpDirectory ->readFile ($ this ->lockFilePath );
103
- if ((time () - $ lockTime ) >= self ::MAX_LOCK_TIME ) {
104
- $ this ->tmpDirectory ->delete ($ this ->lockFilePath );
100
+ try {
101
+ $ lockTime = (int )$ this ->tmpDirectory ->readFile ($ this ->lockFilePath );
102
+ if ((time () - $ lockTime ) >= self ::MAX_LOCK_TIME ) {
103
+ $ this ->tmpDirectory ->delete ($ this ->lockFilePath );
104
+
105
+ return false ;
106
+ }
107
+ } catch (FileSystemException $ e ) {
105
108
106
109
return false ;
107
110
}
You can’t perform that action at this time.
0 commit comments