summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-11-10 10:47:12 +0100
committerMarcel Klehr <mklehr@gmx.net>2012-11-10 10:47:12 +0100
commite24ed46a084972c2d33223be84a3bc8fef25e735 (patch)
treebc56dd4df1d1dd3af3bbf49c93d3cef27ce7beb4 /src
parentdc3db7a4a8953167561f5aa39a23830a620da5c9 (diff)
downloadetherpad-lite-e24ed46a084972c2d33223be84a3bc8fef25e735.zip
PadMessageHandler: Make sure sessioninfos[session] still exists before pushing data to user.
Diffstat (limited to 'src')
-rw-r--r--src/node/handler/PadMessageHandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index a30e4e81..a0bccfc5 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -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;