summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-04 17:01:10 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-05 16:08:30 -0300
commitd32b5d61be9865daac055927697a23702c02c595 (patch)
tree5d4b9021ea1f69396f48a5a61560a203626fcf28 /network
parentd8b05b91dc415169a60ee23609bd83bc3b4a2136 (diff)
Network: missing unregister adapter drivers
Diffstat (limited to 'network')
-rw-r--r--network/manager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/manager.c b/network/manager.c
index c9555285..cafb7442 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -368,7 +368,6 @@ int network_manager_init(DBusConnection *conn)
return -1;
/* Register PANU, GN and NAP servers if they don't exist */
- /* FIXME: server should be registered as adapter driver */
btd_register_adapter_driver(&network_panu_server_driver);
btd_register_adapter_driver(&network_gn_server_driver);
btd_register_adapter_driver(&network_nap_server_driver);
@@ -397,6 +396,10 @@ void network_manager_exit(void)
connection_exit();
}
+ btd_unregister_adapter_driver(&network_panu_server_driver);
+ btd_unregister_adapter_driver(&network_gn_server_driver);
+ btd_unregister_adapter_driver(&network_nap_server_driver);
+
dbus_connection_unref(connection);
connection = NULL;