diff options
-rw-r--r-- | lib/nodejs/lib/thrift/connection.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nodejs/lib/thrift/connection.js b/lib/nodejs/lib/thrift/connection.js index 5faa24c9f..b4e5a0527 100644 --- a/lib/nodejs/lib/thrift/connection.js +++ b/lib/nodejs/lib/thrift/connection.js @@ -202,11 +202,11 @@ Connection.prototype.connection_gone = function () { // If closed by manual, emit close event and cancel reconnect process if(this.forceClose) { - self.emit("close"); if (this.retry_timer) { clearTimeout(this.retry_timer); this.retry_timer = null; } + self.emit("close"); return; } |