[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>
Showing
Please register or sign in to comment