From 2990149ea897c685b4e131bf996aa9d978b4a8b8 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 28 Dec 2014 21:26:30 +0000 Subject: [PATCH] KiwiProxySocket destroy method matching socket.dstroy --- server/proxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/proxy.js b/server/proxy.js index 0782fdd..116bc98 100644 --- a/server/proxy.js +++ b/server/proxy.js @@ -328,7 +328,7 @@ ProxySocket.prototype.connect = function(dest_port, dest_addr, connected_fn) { }; -ProxySocket.prototype.destroySocket = function() { +ProxySocket.prototype.destroy = function() { if (!this.socket) return; @@ -403,7 +403,7 @@ ProxySocket.prototype._onSocketData = function(data) { this.emit('connect'); } else { - this.destroySocket(); + this.destroy(); error_code = error_codes[status] || error_codes[RESPONSE_ERROR]; debug('[KiwiProxy] Error: ' + error_code); -- 2.25.1