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:
Josh Matthews 2012-01-18 14:13:33 -05:00
Родитель c730c76fe6
Коммит 000acebd52
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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.client_connections = [];
if (this.listener) {
this.listener.close(); this.listener.close();
this.listener = null;
}
} }
}; };