Skip to content

Commit

Permalink
make youtube-source-token-poller a daemon thread
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Nov 3, 2024
1 parent c358ae4 commit 186519b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ private void initializeAccessToken() {
log.info("!!! DO NOT AUTHORISE WITH YOUR MAIN ACCOUNT, USE A BURNER !!!");
log.info("==================================================");

// Should this be a daemon?
new Thread(() -> pollForToken(deviceCode, interval == 0 ? 5000 : interval), "youtube-source-token-poller").start();
Thread thread = new Thread(() -> pollForToken(deviceCode, interval == 0 ? 5000 : interval), "youtube-source-token-poller");
thread.setDaemon(true);
thread.start();
}

private JsonObject fetchDeviceCode() {
Expand Down

0 comments on commit 186519b

Please sign in to comment.