drivers/nble: Clarify connection reference counting

Change-Id: I9ed8859cb32f240d131bb9d4ff774e2f805b16d3
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-02-09 19:17:16 +02:00 committed by Anas Nashif
commit b35bf098a0

View file

@ -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);
}