summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 06:48:14 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 06:48:14 +0000
commitc92c420f83dda53ebde74ad72cd0a3959d430901 (patch)
treebe6d064f24fd36556d7475b6e5f027435802425b /audio/sink.c
parentf4f92d015b2bf4b5478d62fb8f4d0e28443f25cf (diff)
Implement RequestAuthorization support
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/sink.c b/audio/sink.c
index ab9f401b..c09c019f 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -160,6 +160,10 @@ static DBusHandlerResult sink_connect(DBusConnection *conn,
if (!sink->session)
sink->session = avdtp_get(&dev->src, &dev->dst);
+ if (!sink->session)
+ return err_connect_failed(conn, msg,
+ "Unable to get a session");
+
if (sink->connect || sink->disconnect)
return err_connect_failed(conn, msg, "Connect in progress");