The attached patch fixes the bug described at
https://bugs.launchpad.net/dcplusplus/+bug/210727. Note that the bug
has changed somewhat since it was first reported. A detailed
description of the behavior in the most recent version can be found at
https://bugs.launchpad.net/dcplusplus/+bug/210727/comments/24. The
patch prevents any files from being hashed until the file list refresh
is complete, and forces a new XML list to be generated after the last
file is hashed. The code is admittedly pretty ugly, and I'm sure a
better programmer than I could implement the fix much more cleanly,
but it seems to work, and I'd really like to see this bug finally get
fixed.
I hereby transfer copyright to Jacek Sieka on the off chance he
decides to use my implementation for some reason.
Ben
|