Revert "Fixing a bug that happens when a socket.io connection closes very early after a CLIENT_READY message"

This reverts commit 0f559347ee.
pull/184/merge
Peter 'Pita' Martischka 2011-11-13 20:25:22 -08:00
parent dac828e8f6
commit a5a9592031
1 changed files with 4 additions and 9 deletions

View File

@ -809,14 +809,9 @@ function handleClientReady(client, message)
//Send the clientVars to the Client
client.json.send(clientVars);
//sometimes the client disconnects very early and the session of it is already removed
//thats why we have to check that case
if(sessioninfos[client.id] !== undefined)
{
//Save the revision and the author id in sessioninfos
sessioninfos[client.id].rev = pad.getHeadRevisionNumber();
sessioninfos[client.id].author = author;
}
//Save the revision and the author id in sessioninfos
sessioninfos[client.id].rev = pad.getHeadRevisionNumber();
sessioninfos[client.id].author = author;
//prepare the notification for the other users on the pad, that this user joined
var messageToTheOtherUsers = {