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

Commit

Permalink
Add the runnable to the thread
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jan 6, 2020
1 parent f50b291 commit 1350eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class YoutubeContextFilterOverride extends YoutubeHttpContextFilter imple
private YoutubeVersionData youtubeVersionData = null;
private final HttpInterface httpInterface;
private final ScheduledExecutorService dataUpdateThread = Executors.newSingleThreadScheduledExecutor((r) -> {
final Thread t = new Thread();
final Thread t = new Thread(r);
t.setName("YouTube-data-updater");
t.setDaemon(true);
return t;
Expand Down

0 comments on commit 1350eac

Please sign in to comment.