[addon] fixes moch application when no moch configured

This commit is contained in:
TheBeastLT
2021-02-01 08:32:02 +01:00
parent e34c3406d1
commit 336fcc77f2

View File

@@ -45,7 +45,7 @@ const unrestrictQueue = new namedQueue((task, callback) => task.method()
.catch((error => callback(error))));
async function applyMochs(streams, config) {
if (!streams || !streams.length) {
if (!streams || !streams.length || !Object.keys(MOCHS).find(moch => config[moch])) {
return streams;
}