Skip to content

Commit

Permalink
fix: fix do not remove the temp duplicate data on the database when t…
Browse files Browse the repository at this point in the history
…here are another running task with the same temp file path

closes #953
  • Loading branch information
Jacksgong committed Feb 26, 2018
1 parent a6a0ea0 commit 09cce32
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ public synchronized void start(final String url, final String path,
FileDownloadLog
.d(this, "there is an another task with the same target-file-path %d %s",
id, targetFilePath);
// because of the file is dirty for this task.
if (model != null) {
mDatabase.remove(id);
mDatabase.removeConnections(id);
}
}

// because of the file is dirty for this task.
if (model != null) {
mDatabase.remove(id);
mDatabase.removeConnections(id);
}
return;
}
Expand Down

0 comments on commit 09cce32

Please sign in to comment.