Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
perf(YouTube - Client spoof): Reduce timeout to fetch storyboard rend…
Browse files Browse the repository at this point in the history
…erer

Because this is blocking the UI thread, a short timeout is preferable.
  • Loading branch information
oSumAtrIX committed Nov 12, 2023
1 parent 5f30100 commit 847cce4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 847cce4

Please sign in to comment.