Skip to content

Commit

Permalink
openvidu-node-client: sort Connection.subscribers array before compar…
Browse files Browse the repository at this point in the history
…ison
  • Loading branch information
pabloFuente committed Oct 20, 2020
1 parent b3cc4f2 commit 83648d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvidu-node-client/src/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class Connection {
}
}
if (equals) {
equals = JSON.stringify(this.subscribers) === JSON.stringify(other.subscribers);
equals = JSON.stringify(this.subscribers.sort()) === JSON.stringify(other.subscribers.sort());
if (equals) {
let i = 0;
while (equals && i < this.publishers.length) {
Expand Down

0 comments on commit 83648d5

Please sign in to comment.