mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
Cancelling an install uninstalled whatever registration lived in the folder, so cancelling a reinstall of a game the user had installed from the Battle.net client deleted that client's registration. An install now decides ownership once, before it starts: the registrations that were already in the folder belong to someone else and are never touched, including the unfinished registration an earlier cancelled install left behind. The decision is snapshotted into SavedQueue when the queue accepts the task, so a resumed or restored install keeps it instead of re-reading a folder that may already hold this task's own registration. The cancellation also holds the folder against a concurrent uninstall, only removes the uids it saw, and only deletes a folder it created itself. The queue publishes the cleanup key so a second cancellation of the same game cannot start a parallel cleanup.