summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2013-10-14 18:20:24 +0200
committerMarcel Klehr <mklehr@gmx.net>2013-10-14 18:20:24 +0200
commit22b0bafafdcbab8da38aa847e97218ca028a92bd (patch)
tree84d27a544ae4f34a39e389ac81eb0b994a5d936e /src
parentef4e0d0eb0ba6f3f54b724cb160470d902a48696 (diff)
downloadetherpad-lite-22b0bafafdcbab8da38aa847e97218ca028a92bd.zip
Pad list cache: You can't change the cache if it's not initiated
(as per 200f2507172d50084cd8cfe6aae6b25a3045fb09 - doh.)
Diffstat (limited to 'src')
-rw-r--r--src/node/db/PadManager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/db/PadManager.js b/src/node/db/PadManager.js
index 868137f9..ea21fe94 100644
--- a/src/node/db/PadManager.js
+++ b/src/node/db/PadManager.js
@@ -60,10 +60,10 @@ var padList = {
{
if(ERR(err, cb)) return;
if(dbData != null){
+ padList.initiated = true
dbData.forEach(function(val){
padList.addPad(val.replace(/pad:/,""),false);
});
- padList.initiated = true
cb && cb()
}
});