From 1c0cb1bc1aad53fb052963264d390700ee0dc6e0 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 5 Mar 2014 12:36:18 -0800 Subject: Don't buffer for no reason --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 7b4ddf31..a5d687ee 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1206,7 +1206,7 @@ public class DownloadService extends Service { bufferAndPlay(position, true); } private synchronized void bufferAndPlay(int position, boolean start) { - if(playerState != PREPARED) { + if(!currentPlaying.isCompleteFileAvailable()) { reset(); bufferTask = new BufferTask(currentPlaying, position, start); -- cgit v1.2.3