Send GATT discovery complete only if discovery is active

This change forces a discovery complete event at gatt close
event only if service discovery is in progress and not when
inquiry is on going. Otherwise, a false discovery complete
is sent to the host, which cause a never ending inquiry.

Change-Id: I7ca207382b04ed233c149ca50040dab993067870
1 file changed
tree: 321c0d35d3703636cf48ad7d317968dde9e3c44e
  1. gki/
  2. system/
  3. Android.mk
  4. CleanSpec.mk