Skip to content

Commit

Permalink
Merge pull request #28 from zeXtreme/master
Browse files Browse the repository at this point in the history
修复多任务下载时经常出现的废弃下载任务失败
  • Loading branch information
kymjs committed May 28, 2015
2 parents 3b1d29a + b8fb29e commit c1a5fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KJFrame/src/org/kymjs/kjframe/http/DownloadController.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public boolean removeTask() {
if (mStatus == STATUS_DISCARD || mStatus == STATUS_SUCCESS) {
return false;
}
if (mStatus == STATUS_DOWNLOADING && mRequest != null) {
if ((mStatus == STATUS_DOWNLOADING || mStatus == STATUS_WAITING) && mRequest != null) {
mRequest.cancel();
mStatus = STATUS_DISCARD;
}
Expand Down

0 comments on commit c1a5fe1

Please sign in to comment.