Skip to content

Commit

Permalink
service: Signal when services are moved
Browse files Browse the repository at this point in the history
When calling MoveBefore or MoveAfter on a service, no signal is emitted
by ConnMan. This makes it impossible for a D-Bus client to maintain an
ordered list of services in sync with ConnMan.

This patch schedules the emission of the signal ServicesChanged from the
function move_service(), so the new list will get published over D-Bus.
  • Loading branch information
Benoît Monin authored and LaakkonenJussi committed Jul 4, 2019
1 parent 2faa797 commit be165aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connman/src/service.c
Expand Up @@ -5753,6 +5753,8 @@ static DBusMessage *move_service(DBusConnection *conn,

__connman_connection_update_gateway();

service_schedule_changed();

return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}

Expand Down

0 comments on commit be165aa

Please sign in to comment.