mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Merge pull request #1152 from marcelklehr/fix/updatePadClients-error
PadMessageHandler: Make sure sessioninfos[session] still exists before p...
This commit is contained in:
commit
a3ff346547
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ exports.updatePadClients = function(pad, callback)
|
||||||
//https://github.com/caolan/async#whilst
|
//https://github.com/caolan/async#whilst
|
||||||
//send them all new changesets
|
//send them all new changesets
|
||||||
async.whilst(
|
async.whilst(
|
||||||
function (){ return sessioninfos[session].rev < pad.getHeadRevisionNumber()},
|
function (){ return sessioninfos[session] && sessioninfos[session].rev < pad.getHeadRevisionNumber()},
|
||||||
function(callback)
|
function(callback)
|
||||||
{
|
{
|
||||||
var author, revChangeset, currentTime;
|
var author, revChangeset, currentTime;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue