mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
PadMessageHandler: Make sure sessioninfos[session] still exists before pushing data to user.
This commit is contained in:
parent
dc3db7a4a8
commit
e24ed46a08
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