Closed Bug 1216555 Opened 10 years ago Closed 10 years ago

client.close fails to call its callback if the connection is already closed

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(firefox44 fixed)

RESOLVED FIXED
Firefox 44
Tracking Status
firefox44 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

If the transport closes (typically when the device is unplugged), and we then try to call client.close(callback), the callback is most likely *not* going to be called. We typically end up with broken toolbox in WebIDE... This patch is based on top of bug 1216554, that allows to know if client is already closed or not.
Attached patch patch v1Splinter Review
With a test.
Attachment #8676271 - Flags: review?(jryans)
https://hg.mozilla.org/integration/fx-team/rev/727c6dc124c784d26db6d17879af243cbce016b9 Bug 1216555 - Makes client.close() failsafe by handling correctly closing connections. r=jryans
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: