From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> If object doesn't exist the device is not permanent so there is no need to create a new object just to handle disconnect event. --- src/event.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/event.c b/src/event.c index 166e401..5060e84 100644 --- a/src/event.c +++ b/src/event.c @@ -692,7 +692,7 @@ void btd_event_disconn_complete(bdaddr_t *local, bdaddr_t *peer) DBG(""); - if (!get_adapter_and_device(local, peer, &adapter, &device, TRUE)) + if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE)) return; adapter_remove_connection(adapter, device); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html