diff options
author | Grant Erickson <marathon96@gmail.com> | 2011-03-03 10:45:06 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-03-09 13:32:32 -0800 |
commit | e37fcb4af343e8eb97b9f888fd821de4c9432f70 (patch) | |
tree | caef4688878ea67b584c16d61f52d1c75d7b61f8 /gdbus/mainloop.c | |
parent | c36c643c2ebebf4463618bbe02bd6a67aa06b7d3 (diff) | |
download | ofono-e37fcb4af343e8eb97b9f888fd821de4c9432f70.tar.bz2 |
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.
Diffstat (limited to 'gdbus/mainloop.c')
-rw-r--r-- | gdbus/mainloop.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index 8eef240b..8718da0f 100644 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -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); } |