Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Oct 18, 2023
1 parent ac21254 commit 2885957
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ class judoisoftControll extends utils.Adapter {
this.log.info("reconnect " + Date.now());
try {
_tokenData = await this.getTokenFirst();
let conResult = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent});
clearInterval(_requestInterval);
this.getInfosCloud();
if (_tokenData != null) {
let conResult = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent});
clearInterval(_requestInterval);
this.getInfosCloud();
}
} catch (err) {
return void this.restart();
}
Expand Down

0 comments on commit 2885957

Please sign in to comment.