mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
daemon: Reevaluate polling timeout after resume
When polling is resumed the timeout needs to be reevaluated. This requires running the polling handler once (in the next mainloop iteration). Set the ready time to zero to ensure this is happening. Without this, we would be stuck without actually polling until we get a uevent from the kernel on one of the power supplies. Fixes: #198
This commit is contained in:
parent
5fea66f411
commit
f64210df4a
1 changed files with 2 additions and 0 deletions
|
|
@ -926,6 +926,8 @@ up_daemon_resume_poll (UpDaemon *daemon)
|
|||
g_debug ("Polling will be resumed");
|
||||
|
||||
daemon->priv->poll_paused = FALSE;
|
||||
|
||||
g_source_set_ready_time (daemon->priv->poll_source, 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue