Closed Bug 1202833 Opened 10 years ago Closed 10 years ago

Autophone - CHARGING state should not prevent Autophone shutdown/restart

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(firefox43 affected)

RESOLVED FIXED
Tracking Status
firefox43 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

Currently, if a phone is in CHARGING state, requests to shutdown/restart Autophone will pause until the phone leaves charging since PhoneWorkerSubProcess.check_battery is called after a test has been set up, PhoneWorkerSubProcess.process_autophone_cmd does not interrupt a test and check_battery does not return until the phone is sufficiently charged. This can be a problem since when Autophone is shutting down/restarting it disables its pulse listener and no longer consumes pulse messages. If it does not restart in a short enough period of time, the pulse queues can grow past the size limit and be deleted. I believe I can fix this issue by making check_battery check if the process_autophone_cmd has set the worker's state to SHUTTINGDOWN and to return a 'command' with interrupt True and a reason related to interrupting a charging device due to a shutdown request. I'll confirm via testing.
Attachment #8658492 - Flags: review?(gbrown) → review+
Thanks!
Blocks: 1202826
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: