mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Only refresh mods if delete is successful
This commit is contained in:
parent
9599eac5f1
commit
3656b173c9
@ -28,8 +28,11 @@ Mods.prototype = new events.EventEmitter();
|
||||
Mods.prototype.delete = function (mod, cb) {
|
||||
var self = this;
|
||||
fs.rmrf(path.join(this.config.path, mod), function (err) {
|
||||
self.updateMods();
|
||||
cb(err);
|
||||
|
||||
if (!err) {
|
||||
self.updateMods();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user