consumer not found Error

This is not true and I’ve confirmed it:

videoProducer.close();

try {
  await videoConsumer.setPreferredLayers({ spatialLayer: 1 });
} catch (error) {
  console.warn('-------- catch(): %s', error);
  console.warn('-------- 2 videoConsumer.closed:', videoConsumer.closed);
}

videoConsumer.closed === true in the catch block as expected. This is super tested.

No where in the docs it’s said that any mediasoup close() method throws if the entity is already closed. Nowhere.

Not true. Really.