mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-18 09:59:27 +01:00
perf(YouTube - Client spoof): Reduce timeout to fetch storyboard renderer
Because this is blocking the UI thread, a short timeout is preferable.
This commit is contained in:
parent
5f30100fd5
commit
847cce43f6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user