diff options
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r-- | audio/avdtp.c | 4 |
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); |