From 8a56e4e5ad997c513c04fed0f3ad9af5b79fe23a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 7 Mar 2014 19:51:53 -0800 Subject: Don't start up positionCache if state isn't local --- 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 799b1fb3..e31075ac 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1008,7 +1008,7 @@ public class DownloadService extends Service { scrobbler.scrobble(this, currentPlaying, true); } - if(playerState == STARTED && positionCache == null) { + if(playerState == STARTED && positionCache == null && remoteState == RemoteControlState.LOCAL) { positionCache = new PositionCache(); Thread thread = new Thread(positionCache, "PositionCache"); thread.start(); -- cgit v1.2.3