vani-meeting-server 1.4.3 → 1.4.4
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.
|
@@ -110,10 +110,11 @@ class SFUEachRoomHandler extends BaseSFUWebsocket_1.BaseSFUWebsocket {
|
|
|
110
110
|
while (this.recvRouter.length < totalNumerOfRecieveRouterCanBeCreated) { // Dont create on send worker
|
|
111
111
|
const worker = workers[currentWorkerIndexForRouter];
|
|
112
112
|
currentWorkerIndexForRouter = this.getWorkerIndexForCreatingRouter(currentWorkerIndexForRouter, workers.length);
|
|
113
|
-
if (worker.pid === sendWorkerPID) {
|
|
113
|
+
if (worker.pid === sendWorkerPID && totalNumerOfRecieveRouterCanBeCreated > 1) {
|
|
114
114
|
continue;
|
|
115
115
|
}
|
|
116
116
|
this.recvRouter.push(await worker.createRouter({ mediaCodecs: Constant_1.mediaCodecs }));
|
|
117
|
+
console.log("rec router crearted");
|
|
117
118
|
}
|
|
118
119
|
this.workers = undefined;
|
|
119
120
|
this.sendWorkerIndex = -1;
|