Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Oct 18, 2023
1 parent 2885957 commit 12d4e19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ class judoisoftControll extends utils.Adapter {
} else {
this.log.info("reconnect " + Date.now());
_tokenData = await this.getTokenFirst();
conResult = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent});
if (_tokenData != null) {
conResult = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent});
}
}

let result;
Expand Down

0 comments on commit 12d4e19

Please sign in to comment.