mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
fixed a API Bug
This commit is contained in:
parent
caecfd3997
commit
82dd4802d7
1 changed files with 7 additions and 0 deletions
|
@ -460,6 +460,13 @@ function handleUserChanges(client, message)
|
|||
|
||||
exports.updatePadClients = function(pad, callback)
|
||||
{
|
||||
//skip this step if noone is on this pad
|
||||
if(!pad2sessions[pad.id])
|
||||
{
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
//go trough all sessions on this pad
|
||||
async.forEach(pad2sessions[pad.id], function(session, callback)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue