Commit 89db1e89 authored by Alex Catarineu's avatar Alex Catarineu Committed by Georg Koppen
Browse files

Bug 33862: Fix usages of createTransport API

There was a nsISocketTransportService breaking change in
https://bugzilla.mozilla.org/show_bug.cgi?id=1558726.
parent 11a79a1c
......@@ -704,7 +704,7 @@ function torbutton_send_ctrl_cmd(command) {
if (m_tb_control_ipc_file) {
socket = sts.createUnixDomainTransport(m_tb_control_ipc_file);
} else {
socket = sts.createTransport(null, 0, m_tb_control_host,
socket = sts.createTransport([], m_tb_control_host,
m_tb_control_port, null);
}
......
......@@ -55,7 +55,7 @@ io.asyncSocketStreams = function (ipcFile, host, port) {
if (ipcFile) {
socketTransport = sts.createUnixDomainTransport(ipcFile);
} else {
socketTransport = sts.createTransport(null, 0, host, port, null);
socketTransport = sts.createTransport([], host, port, null);
}
// Open unbuffered asynchronous outputStream.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment