mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
battery: do final poll at stop() time
This commit is contained in:
@ -251,6 +251,9 @@ sysprof_battery_source_stop (SysprofSource *source)
|
|||||||
|
|
||||||
g_assert (SYSPROF_IS_BATTERY_SOURCE (self));
|
g_assert (SYSPROF_IS_BATTERY_SOURCE (self));
|
||||||
|
|
||||||
|
/* Poll one last time */
|
||||||
|
sysprof_battery_source_poll_cb (self);
|
||||||
|
|
||||||
g_clear_handle_id (&self->poll_source, g_source_remove);
|
g_clear_handle_id (&self->poll_source, g_source_remove);
|
||||||
|
|
||||||
sysprof_source_emit_finished (source);
|
sysprof_source_emit_finished (source);
|
||||||
|
|||||||
Reference in New Issue
Block a user