Download is lost when Windows restarts
Bug #1828593 reported by
Tim
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Committed
|
Low
|
Unassigned |
Bug Description
When Windows restarts or shuts down and DC++ hasn't been closed previously, when Windows starts up again and DC++ starts, whatever download progress is lost and it has to start from the beginning. What I'm saying is if DC++ receives a WM_CLOSE message, it remembers the progress of a download and exits, but if DC++ receives a WM_DESTROY message it forgets the download progress, exits and when DC++ starts up again, that entire download has to start from the beginning again.
To post a comment you must log in.
I can confirm that the position of a segment being downloaded is not saved when WM_DESTROY / WM_ENDSESSION received vs. it is saved upon WM_CLOSE.
In case of segmented downloads are disabled this means the whole download progress is getting lost. Probably that's happening with the reporter.
However, the looks like the temp file is there in the unifinished downloads folder, properly closed and after a restart the rechecker (Recheck integrity menu item) can restore the queue item to the previous download progress state just fine.
The saving of the queue when WM_ENDSESSION is received will not save the position of running segments because the changes indicator bit is set either at the finish of a segment or when the connection is closed before has been finished.
With default settings this problem will not cause any great loss; when it does (in case of segments disabled) then it can be still recovered manually for e.g. large files with slow speeds.