aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-07-02 13:12:27 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-07-02 13:12:27 -0700
commit66daf64911150f4d8f7e6c29d06d504bf79643cf (patch)
tree738e3049c0c094511721772ec3f7feb96d326561 /src
parent8859c94f25916210844ca061f32419719f6b8d82 (diff)
downloaddsub-66daf64911150f4d8f7e6c29d06d504bf79643cf.tar.gz
dsub-66daf64911150f4d8f7e6c29d06d504bf79643cf.tar.bz2
dsub-66daf64911150f4d8f7e6c29d06d504bf79643cf.zip
Don't force redownload if BufferProxy calls onResume
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadFile.java b/src/github/daneren2005/dsub/service/DownloadFile.java
index 4fb6bb42..3fe3ba93 100644
--- a/src/github/daneren2005/dsub/service/DownloadFile.java
+++ b/src/github/daneren2005/dsub/service/DownloadFile.java
@@ -237,7 +237,7 @@ public class DownloadFile implements BufferFile {
@Override
public synchronized void onResume() {
- if(!isFailedMax() && !isDownloading() && !isDownloadCancelled()) {
+ if(!isWorkDone() && !isFailedMax() && !isDownloading() && !isDownloadCancelled()) {
download();
}
}