Package updater fix

This commit is contained in:
Jiiks 2018-08-31 05:16:42 +03:00
parent 669a88c1ff
commit 5822110c87
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export default class PackageInstaller {
const oldContent = PluginManager.getPluginById(id);
if (update && oldContent.packed && oldContent.packageName !== id) {
if (update && oldContent.packed && oldContent.packed.packageName !== id) {
await oldContent.unload(true);
rimraf(oldContent.packed.packagePath, err => {
if(err) console.log(err);