mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 11:22:41 +01:00
Fix #1519: don't error in listSessionsOfGroup when there are non-existing sessions (by eldiddio)
This commit is contained in:
parent
f1b60e9867
commit
6af160ee56
1 changed files with 9 additions and 1 deletions
|
@ -347,7 +347,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