From bbcb2b6b5c5fa0ef872b64a648461c266350423a Mon Sep 17 00:00:00 2001 From: vince Date: Mon, 6 Aug 2018 14:43:48 +0200 Subject: [PATCH] fix: access gl_retry as class property --- lib/API.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/API.js b/lib/API.js index a13fd7754..e8b5150ab 100644 --- a/lib/API.js +++ b/lib/API.js @@ -1506,8 +1506,8 @@ class API { function doList(err, list) { if (err) { - if (gl_retry == 0) { - gl_retry += 1; + if (that.gl_retry == 0) { + that.gl_retry += 1; return setTimeout(that.speedList.bind(that), 1400); } console.error('Error retrieving process list: %s.\nA process seems to be on infinite loop, retry in 5 seconds',err);