summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/unix.c b/audio/unix.c
index a39f1806..3d0b6d7b 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -94,6 +94,9 @@ static void client_free(struct unix_client *client)
{
struct a2dp_data *a2dp;
+ if (client->req_id)
+ client->cancel(client->dev, client->req_id);
+
switch (client->type) {
case TYPE_SINK:
case TYPE_SOURCE:
@@ -797,6 +800,9 @@ static void start_resume(struct audio_device *dev, struct unix_client *client)
goto failed;
}
+ client->req_id = id;
+ client->dev = dev;
+
return;
failed: