Bug 821833 - Don't open extra socket when marionette.force-local is true, r=mdas

This commit is contained in:
Jonathan Griffin 2012-12-14 16:08:05 -08:00
parent f802efe4fe
commit 191a78796b

View File

@ -94,12 +94,14 @@ MarionetteComponent.prototype = {
catch(e) {}
Services.prefs.setBoolPref(DEBUGGER_FORCELOCAL_PREF, marionette_forcelocal);
// See bug 800138. Because the first socket that opens with
// force-local=false fails, we open a dummy socket that will fail.
// This allows the following attempt by Marionette to open a socket
// to succeed.
let insaneSacrificialGoat = new ServerSocket(666, false, 4);
insaneSacrificialGoat.asyncListen(this);
if (!marionette_forcelocal) {
// See bug 800138. Because the first socket that opens with
// force-local=false fails, we open a dummy socket that will fail.
// This allows the following attempt by Marionette to open a socket
// to succeed.
let insaneSacrificialGoat = new ServerSocket(666, false, 4);
insaneSacrificialGoat.asyncListen(this);
}
this.init();
break;