From 847cce43f6436c592c680820960f5270f799cb8d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 12 Nov 2023 16:31:44 +0100 Subject: [PATCH] perf(YouTube - Client spoof): Reduce timeout to fetch storyboard renderer Because this is blocking the UI thread, a short timeout is preferable. --- .../integrations/patches/spoof/SpoofSignaturePatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/patches/spoof/SpoofSignaturePatch.java b/app/src/main/java/app/revanced/integrations/patches/spoof/SpoofSignaturePatch.java index 06534d03..af7e7cb0 100644 --- a/app/src/main/java/app/revanced/integrations/patches/spoof/SpoofSignaturePatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/spoof/SpoofSignaturePatch.java @@ -63,7 +63,7 @@ public class SpoofSignaturePatch { private static StoryboardRenderer getRenderer() { if (rendererFuture != null) { try { - return rendererFuture.get(4000, TimeUnit.MILLISECONDS); + return rendererFuture.get(2000, TimeUnit.MILLISECONDS); } catch (TimeoutException ex) { LogHelper.printDebug(() -> "Could not get renderer (get timed out)"); } catch (ExecutionException | InterruptedException ex) {