mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
parent
492caf4456
commit
751f9a9ea0
2 changed files with 4 additions and 2 deletions
|
|
@ -288,7 +288,8 @@ static DBusHandlerResult filter_message (DBusConnection *connection,
|
||||||
|
|
||||||
if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) {
|
if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) {
|
||||||
spa_log_debug(impl->log, "dbus connection %p disconnected", this);
|
spa_log_debug(impl->log, "dbus connection %p disconnected", this);
|
||||||
dbus_connection_unref(this->conn);
|
if (this->conn)
|
||||||
|
dbus_connection_unref(this->conn);
|
||||||
this->conn = NULL;
|
this->conn = NULL;
|
||||||
connection_emit_disconnected(this);
|
connection_emit_disconnected(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -289,7 +289,8 @@ static void session_destroy(void *data)
|
||||||
static void session_dbus_disconnected(void *data)
|
static void session_dbus_disconnected(void *data)
|
||||||
{
|
{
|
||||||
struct impl *impl = data;
|
struct impl *impl = data;
|
||||||
dbus_connection_unref(impl->bus);
|
if (impl->bus)
|
||||||
|
dbus_connection_unref(impl->bus);
|
||||||
impl->bus = NULL;
|
impl->bus = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue