Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
catch race condition (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Dec 5, 2019
1 parent 669198c commit f6ed30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = function (RED) {
this.debug('topic=' + msg.topic + ' name=' + name + ' ieeeAddr=' + ieeeAddr + ' attribute=' + attribute + ' payload=' + JSON.stringify(msg.payload));

if (!device) {
group = this.groups.find(g => g.meta.name === topicAttrs.name);
group = this.groups && this.groups.find(g => g.meta.name === topicAttrs.name);
if (group) {
isGroup = true;
} else {
Expand Down

0 comments on commit f6ed30f

Please sign in to comment.