diff options
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 929c22c7..08a218ec 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -745,7 +745,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { scrobbler.scrobble(this, currentPlaying, true); } - if(playerState == STARTED) { + if(playerState == STARTED && (executorService == null || executorService.isShutdown())) { Runnable runnable = new Runnable() { @Override public void run() { @@ -846,7 +846,6 @@ public class DownloadServiceImpl extends Service implements DownloadService { // If file is not completely downloaded, restart the playback from the current position. int pos = mediaPlayer.getCurrentPosition(); - Log.d(TAG, pos + " of " + cachedPosition); if(pos == 0) { Log.w(TAG, "Using cached current position"); pos = cachedPosition; |