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

Commit 1350eac

Browse files
committed
Add the runnable to the thread
1 parent f50b291 commit 1350eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/dunctebot/sourcemanagers/extra/YoutubeContextFilterOverride.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class YoutubeContextFilterOverride extends YoutubeHttpContextFilter imple
4141
private YoutubeVersionData youtubeVersionData = null;
4242
private final HttpInterface httpInterface;
4343
private final ScheduledExecutorService dataUpdateThread = Executors.newSingleThreadScheduledExecutor((r) -> {
44-
final Thread t = new Thread();
44+
final Thread t = new Thread(r);
4545
t.setName("YouTube-data-updater");
4646
t.setDaemon(true);
4747
return t;

0 commit comments

Comments
 (0)