Diff between c7fd9310b925e2399be4e0e5fa23be5295b02d7e and d06b912df5abbf1cc046389c36726edd28b373d3

Changed Files

File Additions Deletions Status
profiles/audio/bap.c +2 -0 modified

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 911cdd0..ee90426 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1924,6 +1924,8 @@ static void bap_connecting(struct bt_bap_stream *stream, bool state, int fd,
 
 	if (!ep->io) {
 		io = g_io_channel_unix_new(fd);
+		ep->io_id = g_io_add_watch(io, G_IO_HUP | G_IO_ERR | G_IO_NVAL,
+						bap_io_disconnected, ep);
 		ep->io = io;
 	} else
 		io = ep->io;