diff --git a/drivers/bluetooth/nble/gatt.c b/drivers/bluetooth/nble/gatt.c index c06898ab299..1df440828b5 100644 --- a/drivers/bluetooth/nble/gatt.c +++ b/drivers/bluetooth/nble/gatt.c @@ -1369,6 +1369,7 @@ int bt_gatt_unsubscribe(struct bt_conn *conn, if (params == tmp) { found = params; sys_slist_remove(&subscriptions, prev, node); + continue; } else { prev = node; } diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index 58c909d0521..643c6a31d1f 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -1779,6 +1779,7 @@ int bt_gatt_unsubscribe(struct bt_conn *conn, if (params == tmp) { found = true; sys_slist_remove(&subscriptions, prev, node); + continue; } else { prev = node; }