aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-12 20:15:59 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-12 20:15:59 -0700
commitbc1766a4967ad60fcdd78aec7991816268336c13 (patch)
tree8a9d04c572a490c96eca160101cfb405ece9b1d8 /subsonic-android
parent830eaacb5e082d39b51d5a8de401f97211a2c6e4 (diff)
downloaddsub-bc1766a4967ad60fcdd78aec7991816268336c13.tar.gz
dsub-bc1766a4967ad60fcdd78aec7991816268336c13.tar.bz2
dsub-bc1766a4967ad60fcdd78aec7991816268336c13.zip
Fix proxy killing
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index eee56aad..95cbae2b 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -947,7 +947,7 @@ 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 {
+ } else if(proxy != null) {
proxy.stop();
proxy = null;
}