зеркало из https://github.com/mozilla/gecko-dev.git
Bug 898074 - Defer close to ensure that it doesn't happen before onPacket processing. r=dcamp
This commit is contained in:
Родитель
ebee3cf115
Коммит
77bd411859
|
@ -125,11 +125,14 @@ DebuggerTransport.prototype = {
|
|||
|
||||
onStopRequest:
|
||||
makeInfallible(function DT_onStopRequest(aRequest, aContext, aStatus) {
|
||||
this.close();
|
||||
if (this.hooks) {
|
||||
this.hooks.onClosed(aStatus);
|
||||
this.hooks = null;
|
||||
let self = this;
|
||||
Services.tm.currentThread.dispatch(makeInfallible(function() {
|
||||
self.close();
|
||||
if (self.hooks) {
|
||||
self.hooks.onClosed(aStatus);
|
||||
self.hooks = null;
|
||||
}
|
||||
}, "DebuggerTransport instance's this.close"), 0);
|
||||
}, "DebuggerTransport.prototype.onStopRequest"),
|
||||
|
||||
onDataAvailable:
|
||||
|
|
Загрузка…
Ссылка в новой задаче