diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 06:48:14 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 06:48:14 +0000 |
commit | c92c420f83dda53ebde74ad72cd0a3959d430901 (patch) | |
tree | be6d064f24fd36556d7475b6e5f027435802425b /audio/sink.c | |
parent | f4f92d015b2bf4b5478d62fb8f4d0e28443f25cf (diff) |
Implement RequestAuthorization support
Diffstat (limited to 'audio/sink.c')
-rw-r--r-- | audio/sink.c | 4 |
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"); |