mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821833 - Don't open extra socket when marionette.force-local is true, r=mdas
This commit is contained in:
parent
f802efe4fe
commit
191a78796b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user