зеркало из https://github.com/mozilla/gecko-dev.git
Bug 649564 - Try to ensure that the socks client subprocess is never killed after the process completes. r=ted-irc
This commit is contained in:
Родитель
c730c76fe6
Коммит
000acebd52
|
@ -442,11 +442,17 @@ SocksTestServer.prototype = {
|
||||||
|
|
||||||
close: function()
|
close: function()
|
||||||
{
|
{
|
||||||
if (this.client_subprocess)
|
if (this.client_subprocess) {
|
||||||
this.client_subprocess.kill();
|
this.client_subprocess.kill();
|
||||||
|
this.client_subprocess = null;
|
||||||
|
}
|
||||||
for each (var client in this.client_connections)
|
for each (var client in this.client_connections)
|
||||||
client.close();
|
client.close();
|
||||||
this.listener.close();
|
this.client_connections = [];
|
||||||
|
if (this.listener) {
|
||||||
|
this.listener.close();
|
||||||
|
this.listener = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче