clarify done check
This commit is contained in:
parent
26775fbf5c
commit
6ea9563bfc
1 changed files with 3 additions and 1 deletions
|
|
@ -1092,7 +1092,9 @@ self.kiri.license = exports.LICENSE;
|
|||
ajax(host+"/api/check?key="+key, function(data) {
|
||||
data = js2o(data);
|
||||
DBUG.log(data);
|
||||
if (!data.done && !data.error) setTimeout(function() { gridhost_tracker(host,key) }, 1000);
|
||||
if (!(data.done || data.error)) {
|
||||
setTimeout(function() { gridhost_tracker(host,key) }, 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue