summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-10-14 09:21:27 -0700
committerJohn McLear <john@mclear.co.uk>2013-10-14 09:21:27 -0700
commita120d78b7ef5287c802ec2e950b68669257aab51 (patch)
treea3e7d6810b0d0f81150da668dff8caf490bf3485 /src/node
parent96c366b1e1a22e6263df1051c7b4c14696296af8 (diff)
parent22b0bafafdcbab8da38aa847e97218ca028a92bd (diff)
downloadetherpad-lite-a120d78b7ef5287c802ec2e950b68669257aab51.zip
Merge pull request #1943 from ether/fix/listAllPads-fix
Pad list cache: You can't change the cache if it's not initiated
Diffstat (limited to 'src/node')
-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()
}
});