aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-22 21:31:16 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-22 21:31:16 -0700
commit1654cf11f1b61532e5270fd53b152906fb2e590c (patch)
treea6f4b706e11350f28e3ca5919bdfd1eaac18a943 /subsonic-android
parent2212922e1d10e6d1097064199ae733cdb4a55c52 (diff)
downloaddsub-1654cf11f1b61532e5270fd53b152906fb2e590c.tar.gz
dsub-1654cf11f1b61532e5270fd53b152906fb2e590c.tar.bz2
dsub-1654cf11f1b61532e5270fd53b152906fb2e590c.zip
Fix a rare crash that only seems to happen when shuffle play is enabled
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index fbb15b73..f659a434 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -209,6 +209,8 @@ public class DownloadServiceImpl extends Service implements DownloadService {
@Override
public void onDestroy() {
super.onDestroy();
+ instance = null;
+
if(currentPlaying != null) currentPlaying.setPlaying(false);
if(sleepTimer != null){
sleepTimer.cancel();
@@ -249,8 +251,6 @@ public class DownloadServiceImpl extends Service implements DownloadService {
nextPlayingTask.cancel();
}
Util.hidePlayingNotification(this, this, handler);
-
- instance = null;
}
public static DownloadService getInstance() {