diff options
author | John McLear <john@mclear.co.uk> | 2014-11-04 18:01:41 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2014-11-04 18:01:41 +0000 |
commit | adef0af227a765b8d2ddfece29449bf6b4053313 (patch) | |
tree | c610f1b3f868dc701b998462cd35029170c11e16 /src/node/handler/PadMessageHandler.js | |
parent | 1e53c4f5f0440b00a30037793783f862f3cced7d (diff) | |
download | etherpad-lite-adef0af227a765b8d2ddfece29449bf6b4053313.zip |
more stuff required to stop it crashing, now we have identified what needs fixing we can fix it
Diffstat (limited to 'src/node/handler/PadMessageHandler.js')
-rw-r--r-- | src/node/handler/PadMessageHandler.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index c81c9d17..da2a7a14 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -115,6 +115,7 @@ exports.handleDisconnect = function(client) //if this connection was already etablished with a handshake, send a disconnect message to the others if(session && session.author) { + /* client.get('remoteAddress', function(er, ip) { //Anonymize the IP address if IP logging is disabled if(settings.disableIPlogging) { @@ -123,6 +124,7 @@ exports.handleDisconnect = function(client) accessLogger.info('[LEAVE] Pad "'+session.padId+'": Author "'+session.author+'" on client '+client.id+' with IP "'+ip+'" left the pad') }) + */ //get the author color out of the db authorManager.getAuthorColorId(session.author, function(err, color) @@ -752,6 +754,7 @@ function handleUserChanges(data, cb) exports.updatePadClients = function(pad, callback) { + /* //skip this step if noone is on this pad var roomClients = socketio.sockets.clients(pad.id); if(roomClients.length==0) @@ -827,6 +830,7 @@ exports.updatePadClients = function(pad, callback) callback ); },callback); + */ } /** |