Fixed SFU pipeline fetching

This commit is contained in:
prlanzarin 2018-01-29 15:28:26 +00:00
parent f9bd7a5e37
commit 544e8853ba

View File

@ -55,7 +55,7 @@ module.exports = class MediaServer extends EventEmitter {
return new Promise((resolve, reject) => {
if (this._mediaPipelines[roomId]) {
Logger.warn('[mcs-media] Pipeline for', roomId, ' already exists.');
return this._mediaPipelines[roomId];
resolve(this._mediaPipelines[roomId]);
}
else {
this._mediaServer.create('MediaPipeline', (error, pipeline) => {