diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-03-12 20:12:17 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-03-12 20:12:17 -0700 |
commit | 830eaacb5e082d39b51d5a8de401f97211a2c6e4 (patch) | |
tree | 5fa123f73dc03ccb3540f4eeb0fa7ebab0e8a587 /subsonic-android | |
parent | 0c04f81bfc304eee7a2090fb2343c1d2437e9cab (diff) | |
download | dsub-830eaacb5e082d39b51d5a8de401f97211a2c6e4.tar.gz dsub-830eaacb5e082d39b51d5a8de401f97211a2c6e4.tar.bz2 dsub-830eaacb5e082d39b51d5a8de401f97211a2c6e4.zip |
Kill old proxy when no longer in use
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
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); |