Skip to content

Commit

Permalink
fix(bluetooth-classic): filter only active nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mKeRix committed Feb 14, 2020
1 parent 868d676 commit 3e7cf6e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -237,7 +237,10 @@ export class BluetoothClassicService extends KalmanFilterable(Object, 1.4, 1)
*/
getParticipatingNodes(): Node[] {
const nodes = Object.values(this.clusterService.nodes());
return nodes.filter(node => node.channels?.includes(NEW_RSSI_CHANNEL));
return nodes.filter(
node =>
node.state !== 'removed' && node.channels?.includes(NEW_RSSI_CHANNEL)
);
}

/**
Expand Down

0 comments on commit 3e7cf6e

Please sign in to comment.