From ac83f972e79bfa8b7466ad3b1a833871d2b048b8 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 16 Mar 2014 15:22:24 -0700 Subject: Don't use sleepQuietly, want to throw exception higher --- src/github/daneren2005/dsub/service/DownloadService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/github/daneren2005') 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; } -- cgit v1.2.3