1
0
Fork 0

Fixed a bug in foxx manager that refilled the cache but did not make use of it

This commit is contained in:
Michael Hackstein 2015-02-18 14:05:30 +01:00
parent 21bc33a68a
commit d710047ddb
1 changed files with 2 additions and 1 deletions

View File

@ -93,9 +93,10 @@
if (!appCache.hasOwnProperty(dbname) || Object.keys(appCache[dbname]).length === 0) {
refillCaches(dbname);
}
if (!appCache[dbname].hasOwnProperty(mount)) {
if (!appCache[dbname].hasOwnProperty(mount)) {
refillCaches(dbname);
if (!appCache[dbname].hasOwnProperty(mount)) {
return appCache[dbname][mount];
}
throw new Error("App not found");
}