reset method

void reset(
  1. DownloadTask task
)

Resets the status and retry count for the given task.

Implementation

void reset(DownloadTask task) {
  taskStatus.remove(task.id);
  retryTimes = 3;
}