From 5b6ab5e1911fbcde1514147eec3fc246b31552f5 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 18 Jan 2012 14:13:33 -0500 Subject: [PATCH] Bug 649564 - Try to ensure that the socks client subprocess is never killed after the process completes. r=ted-irc --- netwerk/test/unit/test_socks.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/netwerk/test/unit/test_socks.js b/netwerk/test/unit/test_socks.js index 74dd7d2f8ef..bbaeffa443c 100644 --- a/netwerk/test/unit/test_socks.js +++ b/netwerk/test/unit/test_socks.js @@ -442,11 +442,17 @@ SocksTestServer.prototype = { close: function() { - if (this.client_subprocess) + if (this.client_subprocess) { this.client_subprocess.kill(); + this.client_subprocess = null; + } for each (var client in this.client_connections) client.close(); - this.listener.close(); + this.client_connections = []; + if (this.listener) { + this.listener.close(); + this.listener = null; + } } };