summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--peripheral/gatt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index 8df62a6e6..6cf2b79ac 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)) {