Persist command replies while shutting down Find My Device

NEW
Unassigned

Status

Firefox OS
FindMyDevice
4 years ago
4 years ago

People

(Reporter: ggp, Unassigned, Mentored)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
If a request to the server fails, FMD is not guaranteed to stay alive until the 'retry' alarm is triggered, since we're not holding any wakelocks (bug 1038881). Because of that, the replies to previous server commands (stored in memory in the _reply member variable) may be lost if FMD is killed.

To solve this, we can either persist _reply (which I think is the cleanest way to do it), or hold a wakelock while waiting for the 'retry' alarm to fire (which may take up to 5 minutes).
(Reporter)

Updated

4 years ago
Mentor: ggoncalves@mozilla.com
Summary: Persist command replies while shutting down FMD → Persist command replies while shutting down Find My Device
You need to log in before you can comment on or make changes to this bug.