Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
klee1611 authored and Kourtney Lee(李國秀) committed Jan 17, 2024
1 parent 257315f commit a3ae813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ async function runMediasoupWorkers()
rtcMinPort : Number(config.mediasoup.workerSettings.rtcMinPort),
rtcMaxPort : Number(config.mediasoup.workerSettings.rtcMaxPort)
});
worker._pid = i;

worker.on('died', () =>
{
Expand Down
11 changes: 5 additions & 6 deletions lib/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,15 +1488,14 @@ class Room extends EventEmitter
for (const peer of peersToPipe)
{
const srcRouter = this._mediasoupRouters.get(peer.data.routerId);
if (routerId === peer.data.routerId)
{
logger.info("~~~skipping~parenting~router~~~")
continue;
}

for (const producerId of peer.data.producers.keys())
{
if (router._producers.has(producerId))
{
logger.info("~~~skipping~parenting~router~~~")
continue;
}

await srcRouter.pipeToRouter({
producerId : producerId,
router : router
Expand Down

0 comments on commit a3ae813

Please sign in to comment.