]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-boot-splash: Do not add ply_boot_splash_update_progress timeout multiple times
authorHans de Goede <hdegoede@redhat.com>
Wed, 16 Jan 2019 11:51:05 +0000 (12:51 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 23 Feb 2019 14:01:02 +0000 (15:01 +0100)
commita1920e8af9530b3504811ef04c0400cf7b53da3c
tree1d6e0bed51f981dc6316bdac0f5ca24bda6cd1dc
parentd0e26e24d97e5f7f5715b5eb16730d907e21476c
ply-boot-splash: Do not add ply_boot_splash_update_progress timeout multiple times

Before this commit when freeing the splash, the following would be logged:

multiple matching timeouts found for removal
multiple matching timeouts found for removal

This is caused by us adding the ply_boot_splash_update_progress timeout
handler to the event loop 3 times: 1 on first show, 2 on second show with
a different mode, 3 on becoming idle.

This commit fixes the 2nd add by stopping the timer when changing modes
and the 3th add by not calling ply_boot_splash_update_progress to update
the progress, as that will re-add itself. Instead this commit directly calls
plugin_interface->on_boot_progress from ply_boot_splash_become_idle.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-core/ply-boot-splash.c