Parent: bf25bb8b335e4cd967ad8e4d358addc7305818b9
Author: Jakub Pawlowski <jpawlowski@google.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-09-16 13:50:30
Tree: 88c22db38b5abe5d9a09b5576cb72721722af2d7
core/device: Store services when they change or after pairing. Service caching works only for paired devices. Right now caching is triggered only right after discovery finishes. That means that if already paired device sends service changed notofication, cache won't be updated. Also if you connect to new device, and then pair during this connection, your services won't be cached until reconnect. This will require full service discovery which is slow. This patch fixes that by trying to cache services every time services changed, and right after successful pairing.
Diffstat
| M | src/device.c | | | 10 | +++++++- - - |
1 files changed, 7 insertions(+), 3 deletions(-)