Skip to content

Commit

Permalink
mcs-core: fix subscribe media threshold throw
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed Sep 15, 2020
1 parent edf3215 commit 21fe4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mcs-core/lib/media/media-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ module.exports = class MediaController {
}

if (!params.ignoreThresholds && this.isAboveMediaThresholds(room, user)) {
return reject(this._handleError({
throw (this._handleError({
...C.ERROR.MEDIA_SERVER_NO_RESOURCES,
details: `Threshold exceeded. Threshold: ${GLOBAL_MEDIA_THRESHOLD}`,
}));
Expand Down

0 comments on commit 21fe4ad

Please sign in to comment.