Move updateMeshCore call to when a plugin is disabled instead of removed
Ryan Blenis committed
Dec 4, 2019 at 21:36 UTC
ef9c2fe3218abfda705558fd7059c0da36e60ace
1 file changed
+1
-1
pluginHandler.js
+1
-1
@@ -490,6 +490,7 @@ module.exports.pluginHandler = function (parent) {
490
parent.db.setPluginStatus(id, 0, func);
491
delete obj.plugins[plugin.shortName];
492
delete obj.exports[plugin.shortName];
493
+ parent.updateMeshCore();
494
});
495
};
496
@@ -501,7 +502,6 @@ module.exports.pluginHandler = function (parent) {
502
rimraf.sync(pluginPath);
503
parent.db.deletePlugin(id, func);
504
delete obj.plugins[plugin.shortName];
504
- obj.parent.updateMeshCore();
505
});
506
};
507