From 8de40830c15cfead7ef209f3abeaee86a2de9e15 Mon Sep 17 00:00:00 2001 From: Calvin French-Owen Date: Thu, 25 Oct 2012 16:33:24 -0700 Subject: [PATCH] Adding destroy method to connection --- lib/thrift/connection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/thrift/connection.js b/lib/thrift/connection.js index f7a33a7..5c520f7 100644 --- a/lib/thrift/connection.js +++ b/lib/thrift/connection.js @@ -98,6 +98,10 @@ Connection.prototype.end = function() { this.connection.end(); } +Connection.prototype.destroy = function() { + this.connection.destroy(); +} + Connection.prototype.write = function(data) { if (!this.connected) { this.offline_queue.push(data);