Closed
Bug 796329
Opened 14 years ago
Closed 14 years ago
[b2g-bluetooth] StopSendingFile() does not work
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
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 | ||
Updated•14 years ago
|
| Assignee | ||
Comment 1•14 years ago
|
||
Send OBEX command "Abort" to terminate current operation (PUT).
Attachment #666848 -
Flags: review?(kyle)
Comment 2•14 years ago
|
||
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+
| Assignee | ||
Comment 3•14 years ago
|
||
(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.
| Assignee | ||
Comment 4•14 years ago
|
||
Attachment #666848 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•14 years ago
|
||
| Assignee | ||
Comment 6•14 years ago
|
||
Avoid creating thread each time we send PUT request
Attachment #667317 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•14 years ago
|
blocking-basecamp: ? → +
You need to log in
before you can comment on or make changes to this bug.
Description
•