mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-26 22:33:29 +08:00
Network: missing unregister adapter drivers
This commit is contained in:
parent
d8b05b91dc
commit
d32b5d61be
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user