Skip to content

Commit

Permalink
fix: access gl_retry as class property
Browse files Browse the repository at this point in the history
  • Loading branch information
wallet77 authored and vmarchaud committed Aug 17, 2018
1 parent 8df2451 commit bbcb2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbcb2b6

Please sign in to comment.