summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-25 11:53:02 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-26 14:07:49 +0100
commit132b18dca8dc47cffc16d3d53a8f80cff0b066e1 (patch)
treee8ab33414dcf8f5ca4da4a7d2271a2006fbd67af /snap
parent7a2911c0cc89153bee539c990afcdab306c49e00 (diff)
downloadmana-132b18dca8dc47cffc16d3d53a8f80cff0b066e1.tar.gz
mana-132b18dca8dc47cffc16d3d53a8f80cff0b066e1.tar.bz2
mana-132b18dca8dc47cffc16d3d53a8f80cff0b066e1.tar.xz
mana-132b18dca8dc47cffc16d3d53a8f80cff0b066e1.zip
Cleanup Download code, fixing SDL_Thread leaking
The download thread was setting itself to nullptr (d->mThread = nullptr) in a number of locations. This caused a later call to SDL_WaitThread to be unable to perform cleanup. This reverts most of 1eb02f83a5d3895e4e18db30ea10d88da94ba4c0 (including making Download::cancel no longer blocking), but keeps the necessary waiting for the thread to finish before freeing the memory buffer in ~UpdaterWindow(), which might have been the bug fixed by that change. Fixed removal of downloaded .part file when its checksum failed. It trying to remove the file without .part appended instead. Fixed download progress indication in ServerDialog to not be reversed, though this is rarely visible due to the server list being so small. Fixed reporting of curl error.
Diffstat (limited to 'snap')
0 files changed, 0 insertions, 0 deletions