diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index c8adb9c3c..e2e3760a8 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -52,7 +52,7 @@ export default class AppStore extends Store { | |||
52 | 52 | ||
53 | @observable getAppCacheSizeRequest = new Request(this.api.local, 'getAppCacheSize'); | 53 | @observable getAppCacheSizeRequest = new Request(this.api.local, 'getAppCacheSize'); |
54 | 54 | ||
55 | @observable clearAppCacheRequest = new Request(this.api.local, 'clearAppCache'); | 55 | @observable clearAppCacheRequest = new Request(this.api.local, 'clearCache'); |
56 | 56 | ||
57 | @observable autoLaunchOnStart = true; | 57 | @observable autoLaunchOnStart = true; |
58 | 58 | ||
@@ -378,8 +378,11 @@ export default class AppStore extends Store { | |||
378 | const allServiceIds = await getServiceIdsFromPartitions(); | 378 | const allServiceIds = await getServiceIdsFromPartitions(); |
379 | const allOrphanedServiceIds = allServiceIds.filter(id => !this.stores.services.all.find(s => id.replace('service-', '') === s.id)); | 379 | const allOrphanedServiceIds = allServiceIds.filter(id => !this.stores.services.all.find(s => id.replace('service-', '') === s.id)); |
380 | 380 | ||
381 | await Promise.all(allOrphanedServiceIds.map(id => removeServicePartitionDirectory(id))); | 381 | try { |
382 | 382 | await Promise.all(allOrphanedServiceIds.map(id => removeServicePartitionDirectory(id))); | |
383 | } catch (ex) { | ||
384 | console.log('Error while deleting service partition directory - ', ex); | ||
385 | } | ||
383 | await Promise.all(this.stores.services.all.map(s => this.actions.service.clearCache({ serviceId: s.id }))); | 386 | await Promise.all(this.stores.services.all.map(s => this.actions.service.clearCache({ serviceId: s.id }))); |
384 | 387 | ||
385 | await clearAppCache._promise; | 388 | await clearAppCache._promise; |