Skip to content
Snippets Groups Projects
Gaël Bonithon's avatar
Gaël Bonithon authored
Using a static variable for the source id is not enough here, because
the source is destroyed when the timeout handler returns FALSE, but the
static id isn't reset. Hence, this causes a GLib-CRITICAL when trying to
remove an already removed source on next function call.

This commit fixes this issue, by keeping an approach localized to the
timeout function, and based on the source status.
3f4b102c
History
Name Last commit Last update