Fixed exceptions on screenshare early exit
This commit is contained in:
parent
e327625b64
commit
dedffa9de2
@ -137,7 +137,7 @@ module.exports = class BaseManager {
|
||||
}
|
||||
|
||||
_handleError (logPrefix, connectionId, streamId, role, error) {
|
||||
if (this._validateErrorMessage(error)) {
|
||||
if (error && this._validateErrorMessage(error)) {
|
||||
return error;
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ module.exports = class ScreenshareManager extends BaseManager {
|
||||
}
|
||||
if (role === C.RECV_ROLE && session) {
|
||||
Logger.info(this._logPrefix, "Stopping viewer " + sessionId);
|
||||
await session.stopViewer(message.connectionId);
|
||||
await session.stopViewer(connectionId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user