gdbus: Unconditionally remove D-Bus timeouts

Address an issue in which the daemon incorrectly handles D-Bus main
loop timeouts by only removing timeouts that are not enabled when
D-Bus requests a timeout removal.
This commit is contained in:
Grant Erickson 2011-03-03 10:45:06 -08:00 committed by Marcel Holtmann
parent c36c643c2e
commit e37fcb4af3
1 changed files with 0 additions and 3 deletions

View File

@ -230,9 +230,6 @@ static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data)
static void remove_timeout(DBusTimeout *timeout, void *data)
{
if (dbus_timeout_get_enabled(timeout))
return;
/* will trigger timeout_handler_free() */
dbus_timeout_set_data(timeout, NULL, NULL);
}