mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 881101 - hooks.other is null after shutting down the debugger. r=past
This commit is contained in:
parent
465d00dbcd
commit
b4b2f88a8f
@ -219,13 +219,17 @@ LocalDebuggerTransport.prototype = {
|
||||
}
|
||||
this._deepFreeze(aPacket);
|
||||
let other = this.other;
|
||||
Services.tm.currentThread.dispatch(makeInfallible(function() {
|
||||
// Avoid the cost of JSON.stringify() when logging is disabled.
|
||||
if (wantLogging) {
|
||||
dumpn("Received packet " + serial + ": " + JSON.stringify(aPacket, null, 2));
|
||||
}
|
||||
other.hooks.onPacket(aPacket);
|
||||
}, "LocalDebuggerTransport instance's this.other.hooks.onPacket"), 0);
|
||||
if (other) {
|
||||
Services.tm.currentThread.dispatch(makeInfallible(function() {
|
||||
// Avoid the cost of JSON.stringify() when logging is disabled.
|
||||
if (wantLogging) {
|
||||
dumpn("Received packet " + serial + ": " + JSON.stringify(aPacket, null, 2));
|
||||
}
|
||||
if (other.hooks) {
|
||||
other.hooks.onPacket(aPacket);
|
||||
}
|
||||
}, "LocalDebuggerTransport instance's this.other.hooks.onPacket"), 0);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user