diff options
author | 邹异雄 <yixiongzou@tuputech.com> | 2019-01-05 11:05:38 +0800 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2019-01-05 01:59:19 -0500 |
commit | 0f7904562771ba2c04e0836dfa6eb7771bf3a6a1 (patch) | |
tree | 856fe9a5511630ea67d99f74281460e0958fe2cd /lib/nodejs | |
parent | b239b0a53b016ea55939b6fd667955762bd56909 (diff) | |
download | thrift-0f7904562771ba2c04e0836dfa6eb7771bf3a6a1.tar.gz |
Fix: free useless timer
Diffstat (limited to 'lib/nodejs')
-rw-r--r-- | lib/nodejs/lib/thrift/connection.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nodejs/lib/thrift/connection.js b/lib/nodejs/lib/thrift/connection.js index 15d955b95..9e5c063cf 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; } |