This is an automated email from the ASF dual-hosted git repository.

jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit 0f7904562771ba2c04e0836dfa6eb7771bf3a6a1
Author: 邹异雄 <[email protected]>
AuthorDate: Sat Jan 5 11:05:38 2019 +0800

    Fix: free useless timer
---
 lib/nodejs/lib/thrift/connection.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/nodejs/lib/thrift/connection.js 
b/lib/nodejs/lib/thrift/connection.js
index 15d955b..9e5c063 100644
--- a/lib/nodejs/lib/thrift/connection.js
+++ b/lib/nodejs/lib/thrift/connection.js
@@ -222,6 +222,7 @@ Connection.prototype.connection_gone = function () {
 
   this.retry_timer = setTimeout(function () {
     if (self.connection.destroyed) {
+      self.retry_timer = null;
       return;
     }
 

Reply via email to