notsecure / uTox

Lightweight Tox client
utox.org
GNU General Public License v3.0
597 stars 149 forks source link

File resume refactor #993

Closed GrayHatter closed 9 years ago

GrayHatter commented 9 years ago

@irungentoo per your comment on #972 I've cleaned up the code a bit. And only use the saved info from the files to restore existing files.

I'm starting on figuring out how to replace the file transfer bar, but I think I'm also going to wrap that into saving file transfers to the log file as well, that way any file including completed/* can be restored across restarts. It's something that I think is required as it fixes continuity...

please forgive any incoherencies, my brain turned off an hour ago!

irungentoo commented 9 years ago

https://gist.github.com/irungentoo/164a7771e859bbc53a7f

Some threading fixes I made.

Can you get rid of TOX_FILE_KIND_EXISTING?

irungentoo commented 9 years ago

Send some files, don't accept them and restart the receiver makes some weird things happen. I also see a .ftinfo file being created at the receivers side before I accept the file which is most likely related.

irungentoo commented 9 years ago

https://gist.github.com/irungentoo/fd69036948c41137de70

Fixes some issues I found.

GrayHatter commented 9 years ago

will close #976

irungentoo commented 9 years ago

Merged.