From 3d52be78216ef33224918775c348e947ae61494e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 14 Mar 2014 12:19:07 +0200 Subject: [PATCH] core: Update bearer timestamp also when connecting This way we avoid a bit strange behavior when we've previously always been acceptors for a connection (in which case the last seen timestamp would never have been touched). --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device.c b/src/device.c index cb925a986..2e25fe656 100644 --- a/src/device.c +++ b/src/device.c @@ -1913,6 +1913,8 @@ void device_add_connection(struct btd_device *dev, uint8_t bdaddr_type) { struct bearer_state *state = get_state(dev, bdaddr_type); + device_update_last_seen(dev, bdaddr_type); + if (state->connected) { char addr[18]; ba2str(&dev->bdaddr, addr); -- 2.47.3