Merge pull request #1152 from marcelklehr/fix/updatePadClients-error

PadMessageHandler: Make sure sessioninfos[session] still exists before p...
pull/1159/merge
John McLear 2012-11-14 10:44:30 -08:00
commit a3ff346547
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ exports.updatePadClients = function(pad, callback)
//https://github.com/caolan/async#whilst
//send them all new changesets
async.whilst(
function (){ return sessioninfos[session].rev < pad.getHeadRevisionNumber()},
function (){ return sessioninfos[session] && sessioninfos[session].rev < pad.getHeadRevisionNumber()},
function(callback)
{
var author, revChangeset, currentTime;