
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.
Name | Last commit | Last update |
---|