From 648ca7103439e44e7f83035fa701994a408f8d01 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 13 May 2009 17:46:58 +0100 Subject: [PATCH] Continue to poll when power supply device is marked unknown. Might fix rh#495493 --- src/dkp-supply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dkp-supply.c b/src/dkp-supply.c index 7a5e8e5..cb6db00 100644 --- a/src/dkp-supply.c +++ b/src/dkp-supply.c @@ -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);