Network: missing unregister adapter drivers

This commit is contained in:
Claudio Takahasi 2008-09-04 17:01:10 -03:00
parent d8b05b91dc
commit d32b5d61be

View File

@ -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;