aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-07 22:41:03 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-07 22:41:03 -0700
commitf8401db4d3e31f42fa2b352892b4c0045b8f8b63 (patch)
tree4f60c1c5d092b5c70f21de068ed31601292680e1
parent4f5d1c274e531ce4b035998f965bfc06d50015d1 (diff)
downloaddsub-f8401db4d3e31f42fa2b352892b4c0045b8f8b63.tar.gz
dsub-f8401db4d3e31f42fa2b352892b4c0045b8f8b63.tar.bz2
dsub-f8401db4d3e31f42fa2b352892b4c0045b8f8b63.zip
Should only need one executorService thread
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
index de3c7d39..de2e40a1 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java
@@ -98,7 +98,7 @@ public class DownloadServiceLifecycleSupport {
}
};
- executorService = Executors.newScheduledThreadPool(2);
+ executorService = Executors.newSingleThreadScheduledExecutor();
executorService.scheduleWithFixedDelay(downloadChecker, 5, 5, TimeUnit.SECONDS);
// Pause when headset is unplugged.