Skip to content

Commit

Permalink
Fix race conditiont hat could cause pub/sub to be out of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed Sep 28, 2018
1 parent 5051a14 commit 0746165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/democracy.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class Democracy extends EventEmitter {
if (!this._nodes[data.id]) {
this.addNodeToList(data);
} else {
this._nodes[data.id].channels.push(data.channel);
this._nodes[data.id].channels.push(data.extra.channel);
}
} else {
// Handle custom messaging between nodes.
Expand Down

0 comments on commit 0746165

Please sign in to comment.