Diff between ad4fd0f4e26a4b298b65def41026cb4d54adbe47 and 88abc9a17ed4f3e4e5efd84b220e608c95688ce5
Changed Files
| File | Additions | Deletions | Status |
| tools/mesh/gatt.c | +4 | -1 | modified |
Full Patch
diff --git a/tools/mesh/gatt.c b/tools/mesh/gatt.c
index 2269a20..0a942d4 100644
--- a/tools/mesh/gatt.c
+++ b/tools/mesh/gatt.c
@@ -415,8 +415,11 @@ static bool sock_read(struct io *io, bool prov, void *user_data)
msg.msg_iovlen = 1;
while ((len = recvmsg(fd, &msg, MSG_DONTWAIT))) {
- if (len <= 0)
+ if (len <= 0) {
+ if (errno == EAGAIN)
+ break;
return false;
+ }
res = buf;
len_sar = mesh_gatt_sar(&res, len);