Fix #1519: don't error in listSessionsOfGroup when there are non-existing sessions (by eldiddio)

This commit is contained in:
mluto 2013-03-29 10:09:39 +01:00
parent f1b60e9867
commit 6af160ee56

View file

@ -347,7 +347,15 @@ function listSessionsWithDBKey (dbkey, callback)
{
exports.getSessionInfo(sessionID, function(err, sessionInfo)
{
if(ERR(err, callback)) return;
if (err == "apierror: sessionID does not exist")
{
console.warn("Found bad session " + sessionID + " in " + dbkey + ".");
}
else if(ERR(err, callback))
{
return;
}
sessions[sessionID] = sessionInfo;
callback();
});