agent: Don't remove object at IWD_AGENT_MANAGER_PATH

This same object is used for the P2P service manager, let each module
remove the interfaces it added only.

Reported-by: Denis Kenzior
This commit is contained in:
Andrew Zaborowski 2020-07-16 02:12:24 +02:00 committed by Denis Kenzior
parent 4cf5f5c4b6
commit fc96b35cdc
1 changed files with 0 additions and 1 deletions

View File

@ -651,7 +651,6 @@ static void agent_exit(void)
{
struct l_dbus *dbus = dbus_get_bus();
l_dbus_unregister_object(dbus, IWD_AGENT_MANAGER_PATH);
l_dbus_unregister_interface(dbus, IWD_AGENT_MANAGER_INTERFACE);
l_queue_destroy(agents, agent_free);