mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #1682 from luto/fix-listSessionsOfGroup
Don't error in listSessionsOfGroup when there are non-existing sessions
This commit is contained in:
commit
865829e159
1 changed files with 9 additions and 1 deletions
|
@ -351,7 +351,15 @@ function listSessionsWithDBKey (dbkey, callback)
|
||||||
{
|
{
|
||||||
exports.getSessionInfo(sessionID, function(err, sessionInfo)
|
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;
|
sessions[sessionID] = sessionInfo;
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue