aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-30 13:11:54 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-30 13:11:54 -0700
commit3ba6075d9b06484f8ddafceb7578d4788e3d01fa (patch)
treefa8d37b930dcc60bee5ee01ca9e66485cf766dae /src
parent6aed8bf8a104693928bec7958978f273fec6531a (diff)
downloaddsub-3ba6075d9b06484f8ddafceb7578d4788e3d01fa.tar.gz
dsub-3ba6075d9b06484f8ddafceb7578d4788e3d01fa.tar.bz2
dsub-3ba6075d9b06484f8ddafceb7578d4788e3d01fa.zip
Fix clearing current playing when downloading in background
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 0a13e16e..a998c655 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -593,7 +593,7 @@ public class DownloadService extends Service {
reset();
downloadList.clear();
revision++;
- if (currentDownloading != null) {
+ if (currentDownloading != null && !backgroundDownloadList.contains(currentDownloading)) {
currentDownloading.cancelDownload();
currentDownloading = null;
}