fix retry bug

1. upload a file A
2. A failed
  2.1 A retry, now A.finished is true, so the file.progress() is 1 then will not try again
Merge pull request #1 from dolymood/master

fix: retry bug