From 3de0c7f00ea85785c2c9c2957293ca0cb7c1e9bd Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 14 Jun 2013 13:14:30 -0700 Subject: [PATCH] Bug 878958: In DebuggerClient, substitute mainRoot for _connected. r=dcamp --- toolkit/devtools/client/dbg-client.jsm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toolkit/devtools/client/dbg-client.jsm b/toolkit/devtools/client/dbg-client.jsm index 59ab72d5c82..e30474dacc0 100644 --- a/toolkit/devtools/client/dbg-client.jsm +++ b/toolkit/devtools/client/dbg-client.jsm @@ -524,7 +524,7 @@ DebuggerClient.prototype = { * debugging server responds. */ request: function DC_request(aRequest, aOnResponse) { - if (!this._connected) { + if (!this.mainRoot) { throw Error("Have not yet received a hello packet from the server."); } if (!aRequest.to) { @@ -571,9 +571,8 @@ DebuggerClient.prototype = { : this.compat.onPacket(aPacket); resolve(packet).then((aPacket) => { - if (!this._connected) { + if (!this.mainRoot) { // Hello packet. - this._connected = true; this.mainRoot = new RootClient(this, aPacket); this.notify("connected", aPacket.applicationType,