mirror of git://git.sysmocom.de/ofono
Fix message handling for autostart.
Current implementation of libdbus Request name is blocking, consequently the first incomming message that triggered the service autostart is not being processed properly.
This commit is contained in:
parent
8f499841cf
commit
dab8e45d2e
|
@ -272,6 +272,9 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
|
||||||
|
|
||||||
setup_dbus_with_main_loop(conn);
|
setup_dbus_with_main_loop(conn);
|
||||||
|
|
||||||
|
if (dbus_connection_get_dispatch_status(conn) == DBUS_DISPATCH_DATA_REMAINS)
|
||||||
|
g_timeout_add(DISPATCH_TIMEOUT, message_dispatch_cb, conn);
|
||||||
|
|
||||||
return conn;
|
return conn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue