@livedigital/client 2.14.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "2.14.0",
5
+ "version": "2.14.1",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -237,7 +237,7 @@ class Peer {
237
237
  }
238
238
 
239
239
  const consumer = this.getConsumerById(payload.consumerId);
240
- if (!consumer) {
240
+ if (!consumer || consumer.paused) {
241
241
  return;
242
242
  }
243
243
 
@@ -261,7 +261,7 @@ class Peer {
261
261
  // pick scores of low quality consumers (consumerScore < producerScore)
262
262
  this.engine.peers.forEach((peer) => {
263
263
  peer.getAllConsumers().forEach((item) => {
264
- if (item.score < item.producerScore) {
264
+ if ((item.score < item.producerScore) && !item.paused) {
265
265
  allPeersLowQualityConsumersScores.push(item.score);
266
266
  }
267
267
  });