Fix saving disco caps on first appearance

This commit is contained in:
Lance Stout 2014-01-12 02:08:27 -08:00
parent 720e2c8640
commit 39bfb018ce
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ var discoCapsQueue = async.queue(function (pres, cb) {
log.info('Saving info for ' + caps.ver);
var data = result.discoInfo.toJSON();
app.storage.disco.add(caps.ver, data, function () {
if (resource) resource.discoInfo = existing;
if (resource) resource.discoInfo = data;
cb();
});
} else {