Skip to content

Node.js based forum software built for the modern web

Fix soundpacks not working

Peter Jaszkowiak759c3f5584ef
diff --git a/src/plugins/load.js b/src/plugins/load.js
index f4ba868eea..04b65e9163 100644
--- a/src/plugins/load.js
+++ b/src/plugins/load.js
@@ -263,12 +263,12 @@ module.exports = function (Plugins) {
soundpack.id = pluginData.id;
soundpack.dir = path.join(pluginData.path, soundpack.dir);
async.each(Object.keys(soundpack.sounds), function (key, next) {
- file.exists(path.join(soundpack.dir, soundpack.sounds[key]), function (exists) {
+ file.exists(path.join(soundpack.dir, soundpack.sounds[key]), function (err, exists) {
if (!exists) {
delete soundpack.sounds[key];
}
- next();
+ next(err);
});
}, function (err) {
if (err) {