Closed Bug 942744 Opened 11 years ago Closed 11 years ago

[Bluetooth] Stop discovering before connecting

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: echou, Assigned: echou)

References

Details

Attachments

(1 file)

Bug 873352 has the same idea as this one. Discovery is a heavy operation which would increase the failure rate of pairing or establishing a new profile level connection. Therefore we should do stopDiscovery() every time before we call pair or connect. Recently I found that 'restore connection' was usually not successful, and the main reason was that bluedroid(bluetooth backend which will be used after FxOS v1.3) would report that RFCOMM connection couldn't be established. Once I tried to put 'stopDiscovery' in doConnect() before calling defaultAdapter.connect, everything went well. So I'd like to raise this issue again otherwise connection error may happen too often.
Assignee: nobody → echou
Attachment #8337627 - Flags: review?(arthur.chen)
Comment on attachment 8337627 [details] [diff] [review] Link to https://github.com/mozilla-b2g/gaia/pull/14004 * Reset reviewer to Evelyn after talked to Arthur.
Attachment #8337627 - Flags: review?(arthur.chen) → review?(ehung)
Attachment #8337627 - Flags: review?(ehung) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: