mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
The ownership rules from the previous change stop a cancel from deleting someone else's registration, but a process killed mid-cleanup left the registration behind with nothing to retry it, and a registration the client writes just after the cancel looked at the folder was never seen. A cancelled cleanup now records a marker per folder (SHA-256 of its path, written atomically): ACTIVE while the install runs, PENDING when the cleanup must still happen, WATCHING while the client may still be writing its registration. reconcile() runs on the next refresh, checks the marker against the registrations that are actually there, retries with backoff, and clears the marker once the registration is gone and the folder it created is deleted. uninstall() verifies the registration really disappeared before it reports success. The design document moves to docs/development/battlenet-china.md: it describes the merged state, so the -final suffix and the #2150 reference no longer belong in it.