mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-02 22:30:27 +01:00
Continue to poll when power supply device is marked unknown. Might fix rh#495493
This commit is contained in:
parent
d0977d1112
commit
648ca71034
1 changed files with 2 additions and 1 deletions
|
|
@ -548,7 +548,8 @@ dkp_supply_refresh (DkpDevice *device)
|
|||
* if we are charging or discharging */
|
||||
g_object_get (device, "state", &state, NULL);
|
||||
if (state == DKP_DEVICE_STATE_CHARGING ||
|
||||
state == DKP_DEVICE_STATE_DISCHARGING)
|
||||
state == DKP_DEVICE_STATE_DISCHARGING ||
|
||||
state == DKP_DEVICE_STATE_UNKNOWN)
|
||||
supply->priv->poll_timer_id =
|
||||
g_timeout_add_seconds (DKP_SUPPLY_REFRESH_TIMEOUT,
|
||||
(GSourceFunc) dkp_supply_poll_battery, supply);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue