Diff between d6515f4ca7d4134af5c277945d140742deda498b and 32a0811685c5dd290f1152bef2dfbde3b2848446

Changed Files

File Additions Deletions Status
src/shared/att.c +1 -1 modified

Full Patch

diff --git a/src/shared/att.c b/src/shared/att.c
index a45e9c2..4a406f4 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -551,7 +551,7 @@ static bool can_write_data(struct io *io, void *user_data)
 	if (!op)
 		return false;
 
-	if (!bt_att_chan_write(chan, op->opcode, op->pdu, op->len)) {
+	if (bt_att_chan_write(chan, op->opcode, op->pdu, op->len) < 0) {
 		if (op->callback)
 			op->callback(BT_ATT_OP_ERROR_RSP, NULL, 0,
 							op->user_data);