summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-11-14 10:44:30 -0800
committerJohn McLear <john@mclear.co.uk>2012-11-14 10:44:30 -0800
commita3ff346547e228e246cdadc215f8e5b8c910e732 (patch)
tree45493a1ddf07132a22978d8348ef769a70dc0573
parent3821c1441c229d61efdd7704d0a9633a780bdced (diff)
parente24ed46a084972c2d33223be84a3bc8fef25e735 (diff)
downloadetherpad-lite-a3ff346547e228e246cdadc215f8e5b8c910e732.zip
Merge pull request #1152 from marcelklehr/fix/updatePadClients-error
PadMessageHandler: Make sure sessioninfos[session] still exists before p...
-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;