diff options
author | John McLear <john@mclear.co.uk> | 2013-10-14 09:21:27 -0700 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-10-14 09:21:27 -0700 |
commit | a120d78b7ef5287c802ec2e950b68669257aab51 (patch) | |
tree | a3e7d6810b0d0f81150da668dff8caf490bf3485 /src/node | |
parent | 96c366b1e1a22e6263df1051c7b4c14696296af8 (diff) | |
parent | 22b0bafafdcbab8da38aa847e97218ca028a92bd (diff) | |
download | etherpad-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.js | 2 |
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() } }); |