aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 10872627..eee56aad 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -947,6 +947,9 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
dataSource = String.format("http://127.0.0.1:%d/%s", proxy.getPort(), dataSource);
Log.i(TAG, "Data Source: " + dataSource);
+ } else {
+ proxy.stop();
+ proxy = null;
}
mediaPlayer.setDataSource(dataSource);
setPlayerState(PREPARING);