From 5d57876047de198cd598c5025455197e084caea2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 19 Jun 2020 14:39:31 +0200 Subject: [PATCH] Give up after 10 seconds in SCSS timeout Else we keep idling for ages which leads to bad UX Signed-off-by: Roeland Jago Douma --- lib/private/Template/SCSSCacher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index 2f01a60ffb8..c49abeb3d6f 100644 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -171,7 +171,7 @@ class SCSSCacher { return $this->injectCssVariablesIfAny(); } $this->logger->debug('SCSSCacher: scss cache file locked for '.$lockKey, ['app' => 'core']); - sleep($retry); + sleep(1); $retry++; } $this->logger->debug('SCSSCacher: Giving up scss caching for '.$lockKey, ['app' => 'core']); -- 2.39.5