From bc1766a4967ad60fcdd78aec7991816268336c13 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 12 Mar 2013 20:15:59 -0700 Subject: Fix proxy killing --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsonic-android') 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; } -- cgit v1.2.3