bluez5: don't exit if system DBus goes down

Similarly as in spa_dbus, don't exit if bus goes down.  Neither the
audio or midi Bluetooth backend reconnects to DBus, but they shouldn't
exit the process.
This commit is contained in:
Pauli Virtanen 2024-10-16 23:41:23 +03:00
parent 24d76e73ab
commit cd82c7259b
2 changed files with 4 additions and 0 deletions

View file

@ -808,6 +808,8 @@ impl_init(const struct spa_handle_factory *factory,
goto fail;
}
g_dbus_connection_set_exit_on_close(this->conn, FALSE);
this->manager = g_dbus_object_manager_server_new(MIDI_OBJECT_PATH);
if (!this->manager){
spa_log_error(this->log, "Creating GDBus object manager failed");

View file

@ -1993,6 +1993,8 @@ impl_init(const struct spa_handle_factory *factory,
goto fail;
}
g_dbus_connection_set_exit_on_close(this->conn, FALSE);
this->node.iface = SPA_INTERFACE_INIT(
SPA_TYPE_INTERFACE_Node,
SPA_VERSION_NODE,