PadMessageHandler: Make sure sessioninfos[session] still exists before pushing data to user.

pull/1152/head
Marcel Klehr 2012-11-10 10:47:12 +01:00
parent dc3db7a4a8
commit e24ed46a08
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;