Skip to content

Commit dc7f7a2

Browse files
committed
Engine: unlock file before close
See nette/tracy#540
1 parent 66a50fa commit dc7f7a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Latte/Engine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ private function loadTemplate(string $name): void
248248
if ((include $file) === false) {
249249
throw new RuntimeException("Unable to load '$file'.");
250250
}
251+
252+
flock($lock, LOCK_UN);
251253
}
252254

253255

0 commit comments

Comments
 (0)