diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-11-10 10:47:12 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-11-10 10:47:12 +0100 |
commit | e24ed46a084972c2d33223be84a3bc8fef25e735 (patch) | |
tree | bc56dd4df1d1dd3af3bbf49c93d3cef27ce7beb4 /src | |
parent | dc3db7a4a8953167561f5aa39a23830a620da5c9 (diff) | |
download | etherpad-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.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; |