Fixed SFU pipeline fetching
This commit is contained in:
parent
f9bd7a5e37
commit
544e8853ba
@ -55,7 +55,7 @@ module.exports = class MediaServer extends EventEmitter {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (this._mediaPipelines[roomId]) {
|
if (this._mediaPipelines[roomId]) {
|
||||||
Logger.warn('[mcs-media] Pipeline for', roomId, ' already exists.');
|
Logger.warn('[mcs-media] Pipeline for', roomId, ' already exists.');
|
||||||
return this._mediaPipelines[roomId];
|
resolve(this._mediaPipelines[roomId]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this._mediaServer.create('MediaPipeline', (error, pipeline) => {
|
this._mediaServer.create('MediaPipeline', (error, pipeline) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user