Skip to content

Commit

Permalink
Bluetooth: Mesh: Fix duplicated close callback
Browse files Browse the repository at this point in the history
When PB-GATT Procedure timeout, func `bt_mesh_pb_gatt_close`
will also dumplicated with `link_closed()`

Signed-off-by: Lingao Meng <mengabc1086@gmail.com>
  • Loading branch information
LingaoM authored and avisconti committed Apr 15, 2020
1 parent e454c3a commit e364515
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions subsys/bluetooth/mesh/pb_gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ static void protocol_timeout(struct k_work *work)

BT_DBG("Protocol timeout");

if (link.conn) {
bt_mesh_pb_gatt_close(link.conn);
}

reset_state();

cb->link_closed(&pb_gatt, link.cb_data,
Expand Down

0 comments on commit e364515

Please sign in to comment.