mirror of git://git.sysmocom.de/ofono
gdbus: Fix trying to remove already removed sources
When we return FALSE from idle handlers, the source is removed. This will be causing warnings in glib 2.40. See https://bugzilla.gnome.org/show_bug.cgi?id=710724
This commit is contained in:
parent
9be2fb1b10
commit
7a6da06f27
|
@ -1006,6 +1006,8 @@ static gboolean process_changes(gpointer user_data)
|
||||||
if (data->removed != NULL)
|
if (data->removed != NULL)
|
||||||
emit_interfaces_removed(data);
|
emit_interfaces_removed(data);
|
||||||
|
|
||||||
|
data->process_id = 0;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1019,6 +1021,7 @@ static void generic_unregister(DBusConnection *connection, void *user_data)
|
||||||
|
|
||||||
if (data->process_id > 0) {
|
if (data->process_id > 0) {
|
||||||
g_source_remove(data->process_id);
|
g_source_remove(data->process_id);
|
||||||
|
data->process_id = 0;
|
||||||
process_changes(data);
|
process_changes(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue