summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-20 15:12:33 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-20 15:12:33 +0000
commit7a29d3596b6680c421aa28051ec6baeea1bbfa6b (patch)
tree6243dcafbe04c1ca02c3bd1c2268aea243c39281 /audio/avdtp.c
parent8905b2bad9aebd0911d452b53b9cbe975ad5bdcc (diff)
Improve robustness of A2DP SEP active stream state by using a stream state callback instead of the SEP callbacks
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index a82f21d5..57de80b9 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -326,8 +326,10 @@ static gboolean avdtp_send(struct avdtp *session, void *data, int len)
{
int ret;
- if (session->sock < 0)
+ if (session->sock < 0) {
+ error("avdtp_send: session is closed");
return FALSE;
+ }
ret = send(session->sock, data, len, 0);