Closed Bug 792819 Opened 10 years ago Closed 10 years ago
Service::Notify() won't be called after receiving agent events
I used latest code to pair with my HTC device but failed. I found that we did receive RequestConfirmation event in AgentEventFilter, in that case BluetoothService::Notify should be called because it registered for LOCAL_AGENT_PATH & REMOTE_AGENT_PATH in Init(). However, if Bluetooth was ever switched off, mBluetoothSignalObserverTable would be clear, and we won't register again.
blocking-basecamp: --- → ?
Since mBluetoothSignalObserverTable (in BluetoothService) is cleared when we stop bluetooth, the entry of LOCAL_AGENT_PATH, REMOTE_AGENT_PATH, and BluetoothManager(/) which should be kept in the table are also removed. In this patch, we re-add these entries when bluetooth is started.
Assignee: echou → gyeh
Attachment #664451 - Flags: review?(kyle)
Attachment #664451 - Flags: review?(kyle) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.