Diff between 984260d913eebddbd7b228704c071f0897640dce and 4ccf324d564a910e95ebdbfb4bb2851078ef4b99
Changed Files
| File | Additions | Deletions | Status |
| audio/control.c | +2 | -0 | modified |
Full Patch
diff --git a/audio/control.c b/audio/control.c
index 17454b9..6238007 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -574,6 +574,8 @@ static gboolean control_cb(GIOChannel *chan, GIOCondition cond,
avrcp->code = CTYPE_REJECTED;
}
ret = write(sock, buf, packet_size);
+ if (ret != packet_size)
+ goto failed;
return TRUE;