diff options
author | John McLear <john@mclear.co.uk> | 2012-11-14 10:44:30 -0800 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-11-14 10:44:30 -0800 |
commit | a3ff346547e228e246cdadc215f8e5b8c910e732 (patch) | |
tree | 45493a1ddf07132a22978d8348ef769a70dc0573 | |
parent | 3821c1441c229d61efdd7704d0a9633a780bdced (diff) | |
parent | e24ed46a084972c2d33223be84a3bc8fef25e735 (diff) | |
download | etherpad-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.js | 2 |
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; |