]> source.dussan.org Git - nextcloud-server.git/commitdiff
Give up after 10 seconds in SCSS timeout 21496/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 19 Jun 2020 12:39:31 +0000 (14:39 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 19 Jun 2020 19:29:58 +0000 (19:29 +0000)
Else we keep idling for ages which leads to bad UX

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Template/SCSSCacher.php

index 2f01a60ffb8c7b58ee59dae4e0545902d86d1ece..c49abeb3d6f32f33f1de1efd6f96acb10d20aabb 100644 (file)
@@ -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']);