refresh thread should be daemon

This commit is contained in:
Jae Hyeon Bae 2014-07-09 15:52:17 -07:00
parent 3a849b0341
commit 193c7259f6
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ public class FileSessionCredentialsProvider implements AWSCredentialsProvider {
private volatile String secretKey;
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(
new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d").build()
new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d")
.setDaemon(true).build()
);
public FileSessionCredentialsProvider(String sessionCredentials) {