mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Addressed a potential never finishing forEach in PadMessageHandler.padUsers
If the session info for a client would be null or undefined, the forEach callback would never get called which means the padUsers callback would never get trigged. This could potentially block API request as this function is exposed at an HTTP API endpoint.
This commit is contained in:
parent
ca8dce1840
commit
cfdd57b487
1 changed files with 2 additions and 0 deletions
|
@ -1570,6 +1570,8 @@ exports.padUsers = function (padID, callback) {
|
|||
result.push(author);
|
||||
callback();
|
||||
});
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}, function(err) {
|
||||
if(ERR(err, callback)) return;
|
||||
|
|
Loading…
Reference in a new issue