battery: do final poll at stop() time

This commit is contained in:
Christian Hergert
2019-06-13 20:18:52 -07:00
parent a5ef58dde6
commit 1726a8983f

View File

@ -251,6 +251,9 @@ sysprof_battery_source_stop (SysprofSource *source)
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);
sysprof_source_emit_finished (source);