Closed Bug 796329 Opened 14 years ago Closed 14 years ago

[b2g-bluetooth] StopSendingFile() does not work

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: echou, Assigned: echou)

References

Details

(Whiteboard: [LOE:S])

Attachments

(1 file, 2 obsolete files)

We've already had a StopSendingFile() in nsIDOMBluetoothAdapter, however it doesn't actually stop file-sending process.
Assignee: nobody → echou
Blocks: 792683
blocking-basecamp: --- → ?
Whiteboard: [LOE:S]
Send OBEX command "Abort" to terminate current operation (PUT).
Attachment #666848 - Flags: review?(kyle)
Comment on attachment 666848 [details] [diff] [review] patch 1: implemented StopSendingFile() Review of attachment 666848 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, though I do wonder about the thread for the ring. ::: dom/bluetooth/BluetoothOppManager.cpp @@ +242,5 @@ > } else { > + if (mAbortFlag) { > + SendAbortRequest(); > + } else { > + nsCOMPtr<nsIThread> t; Doesn't this thread scope out at the end of this block?
Attachment #666848 - Flags: review?(kyle) → review+
(In reply to Kyle Machulis [:kmachulis] [:qdot] from comment #2) > Comment on attachment 666848 [details] [diff] [review] > patch 1: implemented StopSendingFile() > > Review of attachment 666848 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good, though I do wonder about the thread for the ring. > > ::: dom/bluetooth/BluetoothOppManager.cpp > @@ +242,5 @@ > > } else { > > + if (mAbortFlag) { > > + SendAbortRequest(); > > + } else { > > + nsCOMPtr<nsIThread> t; > > Doesn't this thread scope out at the end of this block? Yes, you are right! I'll fix it.
Avoid creating thread each time we send PUT request
Attachment #667317 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
blocking-basecamp: ? → +
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: