Fixed SFU session stop function checking

This commit is contained in:
prlanzarin 2018-04-10 15:58:13 +00:00
parent 67f49442b6
commit cf838eca16

View File

@ -51,7 +51,7 @@ module.exports = class BaseManager {
let session = this._sessions[sessionId];
if(session) {
if (session.stop === 'function') {
if (typeof session.stop === 'function') {
await session.stop();
}
delete this._sessions[sessionId];