diff options
Diffstat (limited to 'audio/sink.c')
-rw-r--r-- | audio/sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/sink.c b/audio/sink.c index 7f8286dfa..afdfde652 100644 --- a/audio/sink.c +++ b/audio/sink.c @@ -507,6 +507,8 @@ gboolean sink_setup_stream(struct sink *sink, struct avdtp *session) if (!sink->session) return FALSE; + avdtp_set_auto_disconnect(sink->session, FALSE); + if (avdtp_discover(sink->session, discovery_complete, sink) < 0) return FALSE; @@ -538,8 +540,6 @@ static DBusMessage *sink_connect(DBusConnection *conn, ".AlreadyConnected", "Device Already Connected"); - avdtp_set_auto_disconnect(sink->session, FALSE); - if (!sink_setup_stream(sink, NULL)) return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", "Failed to create a stream"); |