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() } });