diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-06-19 14:39:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-06-19 14:39:31 +0200 |
commit | 4768526b81e1c01f89d2ca4b741503dcbddf4a4e (patch) | |
tree | 3dc79d861b00f6fddc103d80c1e3e500ffacac25 /lib/private/Template/SCSSCacher.php | |
parent | dd0b9655b2dc72556f0a273f262357f5b058fe49 (diff) | |
download | nextcloud-server-4768526b81e1c01f89d2ca4b741503dcbddf4a4e.tar.gz nextcloud-server-4768526b81e1c01f89d2ca4b741503dcbddf4a4e.zip |
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Template/SCSSCacher.php')
-rw-r--r-- | lib/private/Template/SCSSCacher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index 427588ddddf..120ed585e16 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']); |