From 465d00dbcde99dffda21ab89a6411e7e4c55adfb Mon Sep 17 00:00:00 2001 From: Dave Camp Date: Sat, 15 Jun 2013 10:21:50 -0700 Subject: [PATCH] Backout revision 5c76c23df424 for bad commit message. --- toolkit/devtools/server/transport.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/toolkit/devtools/server/transport.js b/toolkit/devtools/server/transport.js index 412ddc3ddfc9..b0e598935f0a 100644 --- a/toolkit/devtools/server/transport.js +++ b/toolkit/devtools/server/transport.js @@ -219,17 +219,13 @@ LocalDebuggerTransport.prototype = { } this._deepFreeze(aPacket); let other = this.other; - 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); - } + 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); }, /**