Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[usb-moded] Forget stale timer id
The charging_fallback() function has multiple return paths and does not always clear timer id variable "charging_timeout". This can later on lead to attempts to remove stale timer id - which causes glib to emit warnings. Clear the bookkeeping variable on entry to callback rather than just one of the possible return points. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information