aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}