Fixed SFU session stop function checking
This commit is contained in:
parent
67f49442b6
commit
cf838eca16
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user