mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
resolved race condition in plugin auto-enabling (not much of a race... I'd
always lose!!)
This commit is contained in:
@@ -156,8 +156,9 @@ var async = require('async'),
|
||||
async.each(defaultEnabled, function(pluginId, next) {
|
||||
Plugins.isActive(pluginId, function(err, active) {
|
||||
if (!active) {
|
||||
Plugins.toggleActive(pluginId);
|
||||
next();
|
||||
Plugins.toggleActive(pluginId, function() {
|
||||
next();
|
||||
});
|
||||
} else next();
|
||||
})
|
||||
}, next);
|
||||
|
||||
Reference in New Issue
Block a user