PadMessageHandler: Make sure sessioninfos[session] still exists before pushing data to user.
This commit is contained in:
parent
dc3db7a4a8
commit
e24ed46a08
|
@ -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…
Reference in New Issue