aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-16 15:22:24 -0700
committerScott Jackson <daneren2005@gmail.com>2014-03-16 15:22:24 -0700
commitac83f972e79bfa8b7466ad3b1a833871d2b048b8 (patch)
tree00c6f2714f0c3dea672a810e45f63790cb4ee990 /src/github/daneren2005
parentf36f68b9a0d8d07707984edfff292747810649cf (diff)
downloaddsub-ac83f972e79bfa8b7466ad3b1a833871d2b048b8.tar.gz
dsub-ac83f972e79bfa8b7466ad3b1a833871d2b048b8.tar.bz2
dsub-ac83f972e79bfa8b7466ad3b1a833871d2b048b8.zip
Don't use sleepQuietly, want to throw exception higher
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index be74ef86..30948dee 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1691,11 +1691,11 @@ public class DownloadService extends Service {
}
@Override
- public Void doInBackground() {
+ public Void doInBackground() throws InterruptedException {
setPlayerState(DOWNLOADING);
while (!bufferComplete()) {
- Util.sleepQuietly(1000L);
+ Thread.sleep(1000L);
if (isCancelled()) {
return null;
}
@@ -1734,15 +1734,15 @@ public class DownloadService extends Service {
}
@Override
- public Void doInBackground() {
+ public Void doInBackground() throws InterruptedException {
if(downloadFile == null) {
return null;
}
// Do an initial sleep so this prepare can't compete with main prepare
- Util.sleepQuietly(5000L);
+ Thread.sleep(5000L);
while (!bufferComplete()) {
- Util.sleepQuietly(5000L);
+ Thread.sleep(5000L);
if (isCancelled()) {
return null;
}