From a6ee0566f8a26346fcddcb49d81e27c2a120fa10 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 1 Oct 2018 15:05:15 +0300 Subject: [PATCH] shared/att: Reset fd when disconnected Set att->fd to -1 when considered disconnected. --- src/shared/att.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/att.c b/src/shared/att.c index 8bf3f4611..04577eddd 100644 --- a/src/shared/att.c +++ b/src/shared/att.c @@ -570,6 +570,7 @@ static bool disconnect_cb(struct io *io, void *user_data) io_destroy(att->io); att->io = NULL; + att->fd = -1; /* Notify request callbacks */ queue_remove_all(att->req_queue, NULL, NULL, disc_att_send_op); -- 2.47.3