Canceling a download now removes all .part files correctly #319

This commit is contained in:
mhutti1 2016-09-20 22:24:23 +01:00
parent 99126c32df
commit 5856dc203d

View File

@ -214,8 +214,8 @@ public class DownloadService extends Service {
return Observable.create(subscriber -> {
if (subscriber.isUnsubscribed()) return;
try {
// Stop if download is completed
if (chunk.isDownloaded) {
// Stop if download is completed or download canceled
if (chunk.isDownloaded || downloadStatus.get(chunk.getNotificationID()) == 2) {
subscriber.onCompleted();
return;
}