drivers/nble: Clarify connection reference counting
Change-Id: I9ed8859cb32f240d131bb9d4ff774e2f805b16d3 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
641d706597
commit
b35bf098a0
1 changed files with 2 additions and 0 deletions
|
@ -204,7 +204,9 @@ void on_ble_gap_disconnect_evt(const struct ble_gap_disconnect_evt *ev)
|
|||
|
||||
BT_DBG("conn %p handle %u", conn, ev->conn_handle);
|
||||
|
||||
/* Drop the reference given by lookup_handle() */
|
||||
bt_conn_unref(conn);
|
||||
/* Drop the initial reference from conn_new() */
|
||||
bt_conn_unref(conn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue