adapter: Check pending when setting DiscoverableTimeout
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 25 Jul 2018 08:39:55 +0000 (11:39 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit2d6b8fe603ffdd0b884a27ea90ebc4c90cd5d5ff
tree9087caa6340024cb1c3a59ed80237d3619884c42
parent29f5a6fb9ce1aad07e98f301766cb723f2ac52b3
adapter: Check pending when setting DiscoverableTimeout

This makes DiscoverableTimeout check if discoverable is already pending
and don't attempt to set it once again which may cause discoverable to
be re-enabled when in fact the application just want to set the timeout
alone.

Change-Id: I5ffb43845cf90698ed92e0d06301e77d4fbee8b7
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/adapter.c