Files
DroidDeck/app/src
visail b0904cc65b fix(battlenet): a cancelled install never removes a pre-existing registration
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.
2026-11-30 09:39:18 -05:00
..