@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/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/engine/Peer.ts +2 -2
package/package.json
CHANGED
package/src/engine/Peer.ts
CHANGED
|
@@ -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
|
});
|