From 9273ebc65667c3f71ffc7961da5e28d06d6714ae Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 6 Mar 2014 18:59:28 -0800 Subject: Don't setup next player if it is same as current --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 79094024..194f06ec 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -651,7 +651,7 @@ public class DownloadService extends Service { nextPlayingTask.cancel(); nextPlayingTask = null; } - if(index < size() && index != -1) { + if(index < size() && index != -1 && index != currentPlayingIndex) { nextPlaying = downloadList.get(index); nextPlayingTask = new CheckCompletionTask(nextPlaying); nextPlayingTask.start(); -- cgit v1.2.3