bluez5: don't unregister HFP/HSP profiles when shutting down

This apparently causes delays in shutdown under some conditions, and
closing the DBus connection should be enought to tell BlueZ that we are
shutting down.
This commit is contained in:
Pauli Virtanen 2021-04-25 21:18:45 +03:00 committed by Wim Taymans
parent 20c8d7b29e
commit 34e78611ac

View file

@ -1870,8 +1870,6 @@ static int backend_native_free(void *data)
sco_close(backend);
backend_native_unregister_profiles(backend);
#ifdef HAVE_BLUEZ_5_BACKEND_HSP_NATIVE
dbus_connection_unregister_object_path(backend->conn, PROFILE_HSP_AG);
dbus_connection_unregister_object_path(backend->conn, PROFILE_HSP_HS);