aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-09-06 13:02:22 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-09-06 13:02:22 -0700
commit12e1bec294b150607945a313caaec1c80e773214 (patch)
tree59daf08dad653525ed829d0c2e7e36de5eb2ad05 /src
parentd4e426356e8be86cee60e3f2a581e9c9dc8156f1 (diff)
downloaddsub-12e1bec294b150607945a313caaec1c80e773214.tar.gz
dsub-12e1bec294b150607945a313caaec1c80e773214.tar.bz2
dsub-12e1bec294b150607945a313caaec1c80e773214.zip
Get rid of unnecessary serialize
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index cae3624b..5aa31aa8 100644
--- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -1138,7 +1138,10 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
}
- lifecycleSupport.serializeDownloadQueue();
+ // Only call when starting, setPlayerState(PAUSED) already calls this
+ if(start) {
+ lifecycleSupport.serializeDownloadQueue();
+ }
} catch (Exception x) {
handleError(x);
}