Diff between b5093e5688c4f3c3c74b9e37ae2cf448f1c56b46 and cf8c7401a0caa237824c2adcdfb428b304a9984e
Changed Files
| File | Additions | Deletions | Status |
| peripheral/gatt.c | +1 | -0 | modified |
Full Patch
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index 8df62a6..6cf2b79 100644
--- a/peripheral/gatt.c
+++ b/peripheral/gatt.c
@@ -178,6 +178,7 @@ static void att_conn_callback(int fd, uint32_t events, void *user_data)
if (!conn) {
fprintf(stderr, "Failed to create GATT connection\n");
close(new_fd);
+ return;
}
if (!queue_push_tail(conn_list, conn)) {